View source: R/collapse_df_by_group.R
| collapse_df_by_group | R Documentation |
This function aggregates a data frame into one row per group, pasting the values of the columns that have different values within a group and (optionally) summing the columns specified in sum_col_names
collapse_df_by_group(
df,
group_col_names,
sum_col_names = NULL,
multi_value_col_names = NULL
)
df |
|
group_col_names |
|
sum_col_names |
|
multi_value_col_names |
|
This function returns a data frame or tibble with one row per group,
keeping the columns and the column order of df
Alberto Castro & Axel Luyten
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.