Description Usage Arguments Details Value See Also Examples
Group the rows in a dataset according to a specified factor or set of factors.
1 2 3 4 5 |
_data |
object to be grouped. |
... |
grouping factors for the rows. |
group
is a generic method that splits the rows in a data set
according to a grouping factor (the additional ...
arguments).
These arguments get evaluated in the scope of the _data
argument
using the scope
function.
Commonly, the next operation after a call to group
will be
a call to do
that operates on the groups of rows.
A single-variable dataset with rows corresponding to the distinct combinations of the grouping factors. Each list entry is a dataset of rows that share the same grouping factor values. The keys of the result are the grouping factors.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.