Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The lapply() function
Other apply() functions
9. sapply() and the simplify argument
The split-apply-combine pattern
Summary

Instruction

Awesome! The sapply() function has one additional argument named simplify that can be set to TRUE or FALSE (TRUE by default). Check what happens if you set simplify to FALSE. Let's use the same example from the last exercise.

Exercise

Calculate the average number of bracelets sold each day. Use the simplify argument, and set it to FALSE.