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
24. Exercise 1

Instruction

Great! Let's try the first exercise.

Exercise

The prize_pool_list contains three members, representing the cash prize for first place (winner), second place (runner-up), and third and fourth place (semi-finalists), respectively. Calculate the total sum awarded to each of these categories of participants.

Stuck? Here's a hint!

You just need to apply sum on each of the members. Type:

lapply(prize_pool_list, sum)