clean_negative_values.RdClean negative numeric values, log issues, and capture diagnostics
clean_negative_values(
data,
cols,
dataset_name,
diagnostics_dir,
issue_log,
n_total,
verbose = F
)Data frame to clean
Character vector of column names to check for negative values
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 negative value details