1.

Which of the following finds the maximum value in the vector x, exclude missing values?(a) rm(x)(b) max(x, na.rm=TRUE)(c) all(x)(d) x%in%yI had been asked this question in an online quiz.My question is taken from Commands topic in section Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

The correct choice is (b) max(X, na.rm=TRUE)

The best EXPLANATION: all(x%in%y)RETURNS true if x is a proper subset of y.



Discussion

No Comment Found

Related InterviewSolutions