Detect misspelled options in columns to be cleaned
Source:R/dictionary_based_cleaning.R
detect_misspelled_options.RdDetect misspelled options in columns to be cleaned
Arguments
- data
The input
<data.frame>or<linelist>- dictionary
A
<data.frame>with the dictionary associated with the input data. This is expected to be compatible with the matchmaker package and must contain the following four columns:optionsThis column contains the current values used to represent the different groups in the input data frame (required).
valuesThe values that will be used to replace the current options (required).
grpThe name of the columns where every option belongs to (required).
ordersThis defines the user-defined order of different options (optional).