
Fix Invalid Birth Dates
fix_invalid_birthdates.RdCorrects `birth_date` values outside the valid range, addressing violations of the `personnel_birth_date` rule. Defaults assume no active worker was born before 1920 or in the future.
Arguments
- data
A data.frame with a `birth_date` column (Date class).
- min_date
Minimum valid birth date (default: `1920-01-01`).
- max_date
Maximum valid birth date (default: `Sys.Date()`).
- treatment
Correction strategy: `"na"`, `"clamp"`, or `"filter"`. See
fix_invalid_dates.