
Step 4 - keep only columns whose name is a canonical variable name
Source:R/clean_dataset.R
dot-select_canonical_cols.RdAny column not present in names(config$var_map) is dropped. This is
the step that removes unmatched columns from the output - if a column was
never renamed to its canonical name (because matching failed), it will not
appear in this intersection and will be silently excluded.
Arguments
- dt
A data.table.
- config
Config object from
load_config().