T Trang Mắm New member Sep 20, 2021 #1 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. x >- NA(1, 5, NA, 10, 8)
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. x >- NA(1, 5, NA, 10, 8)
N Nguyễn Việt Thắng New member Sep 20, 2021 #2 Answer: a Explanation: This returns a logical vector indicating which elements are NA. Upvote 0 Downvote