Description Usage Arguments Value
View source: R/group_and_summarize.R
Group and Summarize
1 2 | group_and_summarize(df, groups = non_numeric_cols(df),
summary_cols = numeric_cols(df), negate = FALSE, .f = sum_na)
|
df |
data.frame |
groups |
character |
summary_cols |
character vector of columns to summarize. This defaults to all numeric columns, but could be switched to other columns if the desire, for instance, is to concatenate all characters. |
negate |
logical |
.f |
function to be applied. Default is 'sum_na', or, sum(x, na.rm = TRUE). |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.