What is the use of subset() function and sample() function in R ?
Answer / Surya Prakash
subset() is used to select a subset of rows or columns from a data frame based on specific conditions. sample() generates a random sample from a vector, matrix, or list.
| Is This Answer Correct ? | 0 Yes | 0 No |
How R Commands are Written?
How would you create a factor in r?
What is the distribution in R?
How to create axes in the graph?
What does not ‘r’ language do?
What is a class in r?
What is scan() in r?
How will you list all the datasets available in all R packages?
Compare r and python?
What is a graphic device?
Explain how R programming applied to the real world?
Which data object in r is used to store and process categorical data?