Question:

What is the use of sample and subset functions in R programming language?

Answer:

Sample () function can be used to select a random sample of size ‘n’ from a huge dataset.

Subset () function is used to select variables and observations from a given dataset.


Keywords:

© 2017 QuizBucket.org