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 NaN?

a) as.nan()
b) is.na()
c) as.na()
d) is.nan()

Answer: d
Explanation: is.nan() is used to test if they are NaN. We can check NAN‘s at any stage of the code. We will remove the NA’s for the operations in R. is.nan() is used to test for NaN.

Join The Discussion