Explanation:The order of the levels of a factor can be set using the levels argument to factor(). 9. Which of the following code snippet will create a vector with NAs in it ?
A. x <- c(1, 2, NA, 10, 3)
B. x <- cNA(1, 2, NA, 10, 3)
C. x <- NA(1, 2, NA, 10, 3)
D. None of the mentioned
Answer:A
Explanation:The order of the levels of a factor can be set using the levels argument to factor(). 9. Which of the following code snippet will create a vector with NAs in it ?
A. x <- c(1, 2, NA, 10, 3) B. x <- cNA(1, 2, NA, 10, 3) C. x <- NA(1, 2, NA, 10, 3) D. None of the mentioned