Creates a one-row tibble recording a data quality issue, its prevalence, and the action taken. Intended to be accumulated into an issue log via dplyr::bind_rows()

log_issue(issue, rows_affected, action, n_total, details_path = NA_character_)

Arguments

issue

Character string identifying the issue (e.g. "temperature_negative")

rows_affected

Integer number of rows affected by the issue

action

Character string describing the action taken (e.g. "Negative values set to NA")

n_total

Integer total number of rows in the dataset, used to calculate prevalence

details_path

Character path to the CSV file containing affected row details (default: NA)

Value

A one-row tibble with columns: issue, rows_affected, prevalence, action, details_path