Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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.

Join The Discussion