1.

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()I have been asked this question during an interview.This interesting question is from Overview of R topic in portion History, Overview and Getting Started of R Programming

Answer»

The CORRECT CHOICE is (d) is.nan()

For explanation I WOULD say: 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.



Discussion

No Comment Found

Related InterviewSolutions