1.

Which of the following tests each element of x for membership in y?(a) y%in%x(b) all(x)(c) any(x)(d) x%in%yI had been asked this question in an interview for internship.I need to ask this question from Commands topic in division Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

Right answer is (d) x%in%y

To ELABORATE: y%in%x TESTS each element of y for MEMBERSHIP in x. x%in%y tests each element of x for membership in y.



Discussion

No Comment Found

Related InterviewSolutions