clean_percent_ranges.RdClean percent columns to the 0-100 range, log issues, and capture diagnostics
clean_percent_ranges(
data,
cols,
dataset_name,
diagnostics_dir,
issue_log,
n_total,
verbose = F
)Data frame to clean
Character vector of column names to check for percent range
Name of dataset (for diagnostic file naming)
Directory to save diagnostic CSV files
Existing issue log to append to
This is passed from the dispatch function.
Logical, print detailed progress messages (default: FALSE). Passed from the dispatch function.
List with cleaned data, updated issue log, and percent range details