Control Structures In R Programming - Study Mode

[#86] How missing values and impossible values are represented in R language?
Correct Answer

(C) NA & NAN

[#87] What will be the output of the following R code? > x <- list(a = 1:4, b = rnorm(10), c = rnorm(20, 1), d = rnorm(100, 5))
> lapply(x, mean)
Correct Answer

(B) $a [1] 2.5 $b [1] 0.248845 $c [1] 0.9935285 Loop Functions 90 $d [1] 5.051388

[#88] The . . . . . . . . function takes a vector or other objects and splits it into groups determined by a factor or list of factors.
Correct Answer

(C) split()

[#89] The . . . . . . . . function is used to plot negative likelihood.
Correct Answer

(A) plot()

[#90] lappy functions takes . . . . . . . . arguments in R language.
Correct Answer

(C) four