2. Programming

R For Analysis — Quiz

Test your understanding of r for analysis with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

Which of the following is the correct way to assign a value to a variable in R?

Question 2

What function in R is commonly used to load a package from the tidyverse?

Question 3

In the tidyverse, which function is primarily used to filter rows of a data frame based on a condition?

Question 4

Which of the following is the correct way to create a sequence of numbers from 1 to 10 in R?

Question 5

How would you calculate the mean of the values in the vector x <- c(2, 4, 6, 8, 10) in R?