Question
What does is.na(x) produce in R?
Select an option. Your answer will be checked instantly.
Correct Answer: D. A logical vector indicating which elements of x are missing
Explanation:
is.na() tests each element for the NA missing-value marker.
The result can be used for filtering or counting missing observations.
Leave a Reply