1.

Which of the following will reverse the order of values in x?(a) rev(x)(b) max(x, na.rm=TRUE)(c) all(x)(d) x%in%yI got this question by my school teacher while I was bunking the class.My doubt is from Commands topic in division Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

Correct option is (a) REV(X)

For explanation: rev provides a REVERSED version of its argument.



Discussion

No Comment Found

Related InterviewSolutions