Description Usage Arguments Examples
View source: R/consolidate_duplicates.R
Consolidates the columns for which there are summary functions provided. For columns without summary functions, non-duplicated entries retain their original value, and duplicated entries return NA.
1 | consolidate_duplicates(df, summary_parsing, ..., by_cols = NA)
|
df |
Dataframe to consolidate. |
summary_parsing |
Functions to apply in the summarize function. |
... |
Columns by which to group for (summarize). |
by_cols |
Alternative argument to allow for passing through the columns by which to group. |
1 | consolidate_duplicates(mtcars, list(wt = rlang::quo(mean(wt))), hp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.