What is the function used to test objects (returns a logical operator) if they are NA?

What is the function used to test objects (returns a logical operator) if they are NA?
A. is.na()
B. is.nan()
C. as.na()
D. as.nan()
 
Answer: a
Explanation: is.na() is the function used to test if they are NA. We can check NA ‘s at any stage of the code. Generally, We will remove the NA’s for the operations in R like mean etc.., is.na() is used to test objects if they are NA.
 

Tìm kiếm

Back
Top