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 |
What does tcp/ip work?
Explain the concept of principal component analysis?
How would you check the distribution of a categorical variable in r?
Explain What is R?
What data Visualizations in R you should learn?
What is the function in r?
How do you check if “m” is a matrix data object in R?
How to request an input from the user through keyboard and monitor?
How would you facet the data using ggplot2 package?
Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[[1]]?
Describe nchar() in r string manipulation?
What do you understand by element recycling in r?