Aggregate1 | R Documentation |
Aggregates by one vector and uses it for row names
Aggregate1(df, by, ...)
df |
Data frame to aggregate |
by |
Atomic object to use for aggregating |
... |
Further arguments for 'aggregate()' |
'Aggregate1()' is an 'aggregate()' helper: aggregates only by one atomic variable and uses it for row names.
Same as of 'aggregate()'
Alexey Shipunov
aggregate
trees3 <- sample(letters[1:3], nrow(trees), replace=TRUE) Aggregate1(trees, trees3, median, na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.