What is the use of subset() function and sample() function in R ?
Answer Posted / 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 |
Post New Answer View All Answers