Description Usage Arguments Value Examples
Constructor function for groupr
object. This function takes a data
frame as input and returns a grouping object as output. The groupr
is
essentially a list of lists of data frames, one data frame for every possible
combination of groups. For example, if there are two groups, A and B, four
data frames are returned: data frames for A, B, both A and B, and a data
frame summarizing the whole dataset.
1 |
df |
A data frame of raw data. |
groups |
A character vector of column names in df that will be basis for aggregation. |
functions |
A named list of functions for aggregation. |
depth |
How far down the tree the combinations should work out. |
A grouping object (list that aggregates functions by every potential combination)
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.