1.

____________ function can be used to select the random sample of size ‘n’ from a huge dataset.(a) Simple()(b) Sample()(c) While()(d) Signal()The question was posed to me by my school principal while I was bunking the class.I want to ask this question from Functions topic in chapter Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

The correct ANSWER is (b) Sample()

Best EXPLANATION: Sample () function can be used to select a random sample of size ‘n’ from the huge DATASET. R has a large number of in-built FUNCTIONS and also the user can create their own functions.



Discussion

No Comment Found

Related InterviewSolutions