Skip to contents

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

Usage

.coerce_all_columns(dt, config, cols, dataset_label = "")

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.

Value

A list of issue data.tables (may be empty).