Consider the following R code: x <- c(-1, 0, 1, NA) / 0 c(sum(is.na(x)), sum(is.nan(x)), sum(is.infinite(x))) What is printed when the code is run?
A[1] 2 1 2
B[1] 2 2 2
C[1] 1 1 2
D[1] 1 2 2
🔒 Answer hidden — practise on Mcqkart to check yourself and see the explanation.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →