Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The lapply() function
Other apply() functions
The split-apply-combine pattern
Summary
25. Exercise 2

Instruction

Great! Now, in a data frame named prize_pool_wimbledon, we have detailed information about prizes – for each program and for each winning place.

Exercise

Calculate how much money was spent on each program.

Stuck? Here's a hint!

Use the split-apply-combine pattern. Use tapply() to calculate total sum of prizes (prize_pool) for each of the programs.