Logo

R Questions Set 26:

Quiz Mode

 Which function opens the screen graphics device for the Mac? 

1
2
3
4

Solution:

The with() function is used to apply an expression for a given dataset.

1
2
3
4

Solution:

Which operator is used to connect multiple verb actions together into a pipeline?

1
2
3
4

Solution:

 Which of the following lets you build interactive Flash or HTML5 charts?

1
2
3
4

Solution:

Pick the output of the code snippet.

 

> x <- 3
> switch(2, 2+2, mean(1:10), rnorm(5))

1
2
3
4

Solution:

The ________ function can be used to add datasets in R, provided that the columns in the datasets are the same.

1
2
3
4

Solution:

Parallel processing is done via a parallel package that can make the elapsed time smaller than the user time.

1
2
3
4

Solution:

Which of the following syntax is used to install the forecast package?

1
2
3
4

Solution:

Which of the following functions can be used to read CSV files in R?

1
2
3
4

Solution:

 What will be the output of the following R code? 

 

> centre <- function(x, type) {
+ switch(type,
+        mean = mean(x),
+        median = median(x),
+        trimmed = mean(x, trim = .1))
+ }
> x <- rcauchy(10)
> centre(x, "mean")

1
2
3
4

Solution: