What is the use of tapply?

Category: R LanguageWhat is the use of tapply?
Editor">Editor Staff asked 2 years ago

What is the use of tapply?

1 Answers
Editor">Editor Staff answered 2 years ago

The tapply function is useful when we need to break up a vector into groups defined by some classifying factor, compute a function on the subsets, and return the results in a convenient form. You can even specify multiple factors as the grouping variable, for example treatment and sex, or team and handedness