clean_using_dictionary {cleanepi} | R Documentation |
Perform dictionary-based cleaning
Description
Perform dictionary-based cleaning
Usage
clean_using_dictionary(data, dictionary)
Arguments
data |
A data frame |
dictionary |
A data dictionary associated with the input data. |
Value
A data frame with cleaned values in the target columns specified in the data dictionary.
Examples
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"))
)
[Package cleanepi version 1.0.2 Index]