sumBy | R Documentation |
Sums variables in a dataframe by a set of factor levels.
Uses getFactorLevels
to identify the unique factor combinations in columns
identified as factors.
sumBy(df, factors, vars, sortBy = NULL, ascending = TRUE)
df |
|
factors |
|
vars |
|
sortBy |
|
ascending |
|
None.
a dataframe of results with columns corresponding to factors and vars
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.