1.

What Is The Use Of Subset() And Sample() Function In R?

Answer»

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.

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.



Discussion

No Comment Found