
Step 7 (all columns) - apply safe coercion across the dataset
Source:R/clean_dataset.R
dot-coerce_all_columns.RdIterates over cols, calls .coerce_column() for each, applies the result
only when coercion is safe, and accumulates issue rows for every column
where it is not.
Arguments
- dt
A data.table (modified by reference for safe columns).
- config
Config object from
load_config().- cols
Character vector of column names to process.
- dataset_label
Label for warning messages.