What is the use of subset() function and sample() function in R ?
What is the use of subset() function and sample() function in R ?
Answer
In R, subset() functions help you to select variables and observations while through sample() function you can choose a random sample of size n from a dataset.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website