Description Usage Arguments Details Value Examples
Data aggregation
1 |
x |
a data frame |
cols |
the columns to aggregate |
by |
grouping elements |
FUN |
function used to aggregate the data |
... |
further parameters passed to 'aggregate' or to 'FUN' |
This function is a convenient wrapper for aggregate
.
It is implemented as 'aggregate( x[,cols], x[, by], FUN, ...)'.
a data frame, with the data in 'x[,cols]\' aggregated according to the levels of the factors in 'x[,by]'.
1 | agg(departements, cols = c("superficie", "population"), by = "région")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.