What is the use of tapply?

DWQA QuestionsCategory: R LanguageWhat is the use of tapply?
Editor Staff asked 9 months ago

What is the use of tapply?

1 Answers
Editor Staff answered 9 months 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