End of Summer - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The lapply() function
3. Calling a function on each list member separately
Other apply() functions
The split-apply-combine pattern
Summary

## Instruction

Smartcom is selling smart bracelets all the time. On which day of the week did Smartcom sell the most bracelets last week?

One way you can approach this problem is by applying the sum() function to calculate the total number of pieces sold on a particular day.

For Monday, we'd execute this statement:

sum(sales[["monday"]])

And we'd find that 3581 smart bracelets were sold that day.

In a similar way, we could get the total number of pieces sold for the remaining six days (the other list elements).

## Exercise

Calculate the average number of bracelets sold on Sunday.