Introduction
Grouping data helps us see patterns in smaller parts. Using custom functions lets us get exactly the summary we want.
You want to find the average and also the range (max - min) of sales per store.
You need to count how many unique customers bought each product.
You want to apply a special calculation, like weighted average, on groups of data.
You want to clean or transform data differently for each group before analysis.