What will be the output of the following R code? [code] > x <- 3 > switch(2, 2+2, mean(1:10), rnorm(5)) [/code]

Đức Linh

New member
What will be the output of the following R code?
Code:
> x <- 3
> switch(2, 2+2, mean(1:10), rnorm(5))
A. 5
B. 5.5
C. NULL
D. 58
 

Tìm kiếm

Back
Top