
Flag or Remove Underage Workers
fix_underage_workers.RdAddresses violations of the `personnel_minimum_age` rule. Workers below `min_age` (default: 18) are identified using `birth_date` and `ref_date`. Age is calculated as `difftime(ref_date, birth_date, units = "days") / 365.25`.
Usage
fix_underage_workers(data, min_age = 18, treatment = c("flag", "filter"))