Description Usage Arguments Value Functions
View source: R/clean_messy_groups.R
During dataset generation, sometimes data from different sources may put missing values where consistent results should be present.
1 2 3 | clean_messy_groups(data, keys, values, missing_value = NA)
replace_messy_groups(data, keys, values, missing_value = NA)
|
data |
The dataset (typically a data.frame or similar) to simplify |
keys |
Column names (as character strings) for grouping |
values |
Columns to from the original data as values that must
be unique within a group (defaults to all columns other than
|
missing_value |
A scalar value indicating what should be
considered missing and should be used for replacement if all values
are missing (typically |
A dataset with one row per key and one value in each column.
replace_messy_groups
: Both clean the groups and replace them
back in the original dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.