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 / 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

More R Programming Interview Questions

How do I sort in descending order in r?

1 Answers  


What is vectorization in r?

1 Answers  


How many tools for debugging present in r?

1 Answers  


Why the cv.im()?

1 Answers  


What is iPlots?

1 Answers  


What is the need for Predictive Analysis in R?

1 Answers  


How can you load and use csv file in R?

1 Answers  


What do you know about the rattle package in r?

1 Answers  


What do you know about the evaluate_model() function from “statisticalmodeling” package

1 Answers  


How do you build and evaluate a random forest in r?

1 Answers  


What are functions of Random forest in R?

1 Answers  


How many methods are available to use the matrices?

1 Answers  


Categories