Google News
logo
R - Interview Questions
What is the use of subset() and sample() function in R?
Subset() is used to select the variables and observations and sample() function is used to  generate  a random sample of the size n from a dataset.
Advertisement