What is difference between lapply and sapply?

Category: R LanguageWhat is difference between lapply and sapply?
Editor">Editor Staff asked 2 years ago

What is difference between lapply and sapply?

1 Answers
Editor">Editor Staff answered 2 years ago

lapply is used to show the output in the form of list whereas sapply is used to show the output in the form of vector or data frame