View source: R/trans_aggregation.R
| aggregation | R Documentation |
Aggregate data by a grouping attribute using named expressions.
aggregation(group, ...)
group |
grouping column name (string) |
... |
named expressions evaluated per group |
returns an object of class aggregation
data(iris)
agg <- aggregation(
"Species",
mean_sepal = mean(Sepal.Length),
sd_sepal = sd(Sepal.Length),
n = n()
)
iris_agg <- transform(agg, iris)
iris_agg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.