Description Usage Arguments Value Author(s) References
When there are multiple factors to split by, Base R split returns a flattened structure by splitting on the interaction of all factors. rsplit instead returns a nested list-of-lists.
1 |
x |
a data.frame or vector |
by |
a data.frame of factors |
drop |
drop unused factor levels |
a nested list of dataframes, split by each element of by
Inspired by, but different from the below
Neal Fultz
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.