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


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


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.