View source: R/dictionary_based_cleaning.R
clean_using_dictionary | R Documentation |
Perform dictionary-based cleaning
clean_using_dictionary(data, dictionary)
data |
A data frame |
dictionary |
A data dictionary associated with the input data. |
A data frame with cleaned values in the target columns specified in the data dictionary.
data <- readRDS(system.file("extdata", "messy_data.RDS",
package = "cleanepi"))
data$gender[2] <- "homme"
cleaned_df <- clean_using_dictionary(
data = data,
dictionary = readRDS(system.file("extdata", "test_dict.RDS",
package = "cleanepi"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.