aggregate function - RDocumentation

<p>Splits the data into subsets, computes summary statistics for each, and returns the result in a convenient form.</p>