Aggregation is one of the most common uses for R. There are several ways to do so in R, which we will illustrate here.