Skip to contents

Any 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.

Usage

.select_canonical_cols(dt, config)

Arguments

dt

A data.table.

config

Config object from load_config().

Value

A new data.table containing only canonical columns.