Vectors
Dataframes
Conditions
Functions
100

If you are selecting a vector element and you type in x[4], which element(s) are you selecting?

The 4th element

100
What does view(df) mean?

View the entire data frame

100

what does a == b mean?

a and b are equal

100

when is the select() function used?

when choosing a column (to include or exclude)

200

If you are selecting a vector element and you type in x[-4], which element(s) are you selecting?

All but the 4th element

200

What does head(df) mean?

View the first 6 rows of the data frame

200

what does a != b mean?

a and b are not equal

200

when is the filter() function used?

when choosing a row to include or exclude

300

If you are selecting a vector element and you type in x[2:6], which element(s) are you selecting?

Elements 2 to 6

300

What do cbind & rbind mean?

These are used to combine the columns/rows of two data sets into one data frame

300

when do we use is.na(a)?

To check for missing values

300

what is round(x, n)?

round to n decimal places

400

If you are selecting a vector element and you type in x[x > 5], which element(s) are you selecting?

All elements greater than 5

400

What do the following functions tell you?

nrow(df), ncol(df), dim(df)

nrow(df) tells you the amount of rows in the df

ncol(df) tells you the amount of columns in the df

dim(df) tells you the amount of rows and columns

400

what does is.null(a) tell us?

Indicates when a data object or data type is null (no value associated with it)

400

what is signif(x, n)?

round to n significant figures

500

If you are selecting a vector element and you type in x['blue'], which element(s) are you selecting?

Element with the name blue

500

What is the dplyr package used for

data manipulation

500

what is the readr package used for?

to read files

500

what does the following function mean?

if (i < 6){

print ('Yes')

} else {

print ('No')

}

If I is less than 6, output will show as yes. Otherwise, output will show as no