Logo

R Questions Set 11:

Quiz Mode

____ is complimentary to  tidyr

1
2
3
4

Solution:

Which of the following produces box-and-whisker plots?

1
2
3
4

Solution:

The __________ function is used to apply a function at each level of factors.

1
2
3
4

Solution:

Which function calculates the count of each category of a categorical variable? 

1
2
3
4

Solution:

Which variable type is used for storing a number with a decimal point (such as 52.63)?

1
2
3
4

Solution:

Explain the output

 

> x <- c("a", "b", "c", "c", "d", "a")
> x[c(1, 3, 4)]

1
2
3
4

Solution:

The _________ function allows you to insert debugging code into specific places in a function.

1
2
3
4

Solution:

The sort() function returns a vector of the same size as x with the elements arranged in increasing order.

1
2
3
4

Solution:

We can use the dump() function in R to save R objects to a file by passing a character vector of their names.

1
2
3
4

Solution:

Which of the following statements chooses the objects from a dataset that meet a logical criterion?

1
2
3
4

Solution: