Aggregation is a data analysis operation which combines the data of similar observations.
The table below shows data for three observations.
The table below has been created from the table above by aggregating by gender. It can be thought of as either a summary of the table above, or, a new data set with a new definition of the observation (i.e., gender rather than person). In this example, the mathematical function that has been used to aggregate the numeric data is the mean. However, other functions are appropriate (e.g., maximum, sum).
Related R functions