Description Usage Arguments Value Examples
View source: R/add_group_summaries.R
Group a data frame by the groupingVars and compute user summaries on this data frame (user summaries specified in ...), then join these new columns back into the original data and return to the user. Author: John Mount, Win-Vector LLC.
1 | add_group_summaries(d, groupingVars, ..., arrangeTerms = NULL)
|
d |
data.frame |
groupingVars |
character vector of column names to group by. |
... |
list of dplyr::mutate() expressions. |
arrangeTerms |
character optional vector of column expressions to arrange by. |
d with grouped summaries added as extra columns
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.