df_group_by | R Documentation |
Group a data frame by one or more variables. Supports standard and non standard evaluation.
df_group_by(data, ..., vars = NULL)
data |
a data frame |
... |
One or more unquoted expressions (or variable names) separated by commas. Used to select a variable of interest. |
vars |
a character vector containing the variable names of interest. |
# Non standard evaluation by_dose <- head(ToothGrowth) %>% df_group_by(dose) by_dose # Standard evaluation head(ToothGrowth) %>% df_group_by(vars = c("dose", "supp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.