aggregate_df | R Documentation |
Aggregates matrix or data frame
aggregate_df(df, groups, fun = mean, margin = 1, ...)
df |
A matrix or data frame |
groups |
A vector of groups (discrete values) |
fun |
A function that aggregates a vector into objects of length 1 |
margin |
If 1, aggregates rows, if 2 aggregates columns. Defaults to 1 |
... |
passed to fun |
A data.frame with aggregated rows or columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.