split_ | R Documentation |
Split a data frame in groups based on variables
split_(.data, .vars, sep = ".", ...)
.data |
a data frame. |
.vars |
character vector with the names of the columns for which the data frame will be divided. |
sep |
a character string to separate the terms. |
... |
additional potential arguments passed to |
a list whose elements are the data frames with the groups defined by the combinations of the chosen variables.
data(invented_wages)
split_(invented_wages, .vars = c("gender"))
split_(invented_wages, .vars = c("gender", "sector"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.