Logo

R Questions Set 14:

Quiz Mode

Which function replicates elements of vectors?

1
2
3
4

Solution:

Which level plotting commands generate figures? 

1
2
3
4

Solution:

How to check if an R object is NULL?

1
2
3
4

Solution:

The ______ function cross-tabulates tables using formulas.

1
2
3
4

Solution:

 We can dump() R objects to a file by passing _____ 

1
2
3
4

Solution:

Which of the following extracts the first element from the R vector below?

x <- c("a", "b", "c", "c", "d", "a")

1
2
3
4

Solution:

A function that returns a vector of the same size as x with the elements arranged in increasing order. 

1
2
3
4

Solution:

Setting the random number seed with _____ ensures reproducibility of the sequence of random numbers.

1
2
3
4

Solution:

Code to generate a sequence of integers from 1 to 10

1
2
3
4

Solution:

Which of the following R code can be used to avoid numeric problems such as taking the logarithm of a non-positive number?

1
2
3
4

Solution: