1.

Which function helps you perform sorting in R language?(a) Order(b) Inorder(c) Simple(d) LibraryThe question was posed to me by my school teacher while I was bunking the class.This interesting question is from Functions topic in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct answer is (a) Order

Explanation: Order RETURNS a permutation which rearranges its first ARGUMENT into ascending and also descending order. The result of the order COMMAND is a vector where each value references to the VALUES of the position of the object in the original data FRAME.



Discussion

No Comment Found

Related InterviewSolutions