What is sapply() in r?



What is sapply() in r?..

Answer / Ramesh Mishra

In R, `sapply()` (simple apply) is a function used for applying a function to each element of a list or vector. It simplifies the output by default, returning a vector or a matrix.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What is JIT in R?

1 Answers  


Explain how to operate on lists in r?

1 Answers  


What is bytecode compilation?

1 Answers  


Which function is used to create a histogram visualisation in r programming language?

1 Answers  


How would you rename the columns of a dataframe?

1 Answers  


How R Commands are Written?

1 Answers  


What is the difference between the data frame and a matrix in R?

1 Answers  


What is a factor?

1 Answers  


What are useful s3 method functions?

1 Answers  


What are co-relations in R?

1 Answers  


What is CLI in R?

1 Answers  


What makes a valid variable name in R?

1 Answers  


Categories