Which of the following code create a n item vector of random normal deviates?
(a) x1 <- c(snorm(n))
(b) x1 <- c(pnorm(n))
(c) x1 <- c(rnorm(n))
(d) x1 >- c(norm(n))
The question was asked in a job interview.
My question is based upon Commands in chapter Commands, Packages, Visualizing Data and Linear Regression of R Programming