powered by
Aggregates by one vector and uses it for row names
Aggregate1(df, by, ...)
Same as of 'aggregate()'
Data frame to aggregate
Atomic object to use for aggregating
Further arguments for 'aggregate()'
Alexey Shipunov
'Aggregate1()' is an 'aggregate()' helper: aggregates only by one atomic variable and uses it for row names.
aggregate
trees3 <- sample(letters[1:3], nrow(trees), replace=TRUE) Aggregate1(trees, trees3, median, na.rm=TRUE)
Run the code above in your browser using DataLab