Search Header Logo

Tidyverse style guide: good and bad coding examples

Authored by Marije FA

Computers, Social Studies

University - Professional Development

Used 6+ times

Tidyverse style guide: good and bad coding examples
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Wat zijn goede bestandsnamen?

fit_models.R

fit models.R

utility_functions.R

01_explore.R

stuff.r

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Wat zijn goede objectnamen?

DayOne

dayone

day_one

day_1

first_day_of_the_month

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Waar worden spaties goed gebruikt bij kolomselectie?

x[,1]

x[ ,1]

x[, 1]

x[ , 1]

x [ , 1]

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Waar worden spaties goed gebruikt bij het aanroepen van een functie?

mean (x, na.rm = TRUE)

mean( x, na.rm = TRUE )

mean(x, na.rm = TRUE)

mean(x,na.rm=TRUE)

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Waar worden spaties goed gebruikt bij infix operators?

height <- (feet * 12) + inches

height<-feet*12+inches

sqrt(x^2 + y^2)

sqrt(x ^ 2 + y ^ 2)

df $ z

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wat is het maximale aantal karakters waaruit een regel code mag bestaan?

50

80

100

150

200

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Hoe wijs je een waarde toe aan een object?

x <- 5

x = 5

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?