Intermediate R
Q50 / 100

What does "tapply(data, group, function)" do?

Correct! Well done.

Incorrect.

The correct answer is A) Applies a function to data, split into groups defined by "group", returning a result for each group

A

Correct Answer

Applies a function to data, split into groups defined by "group", returning a result for each group

Explanation

tapply() splits a vector into groups according to a factor and applies a function to each group, returning an array of results.

Progress
50/100