Validate target-request rows against model extents and schema
Source:R/targets.R
validate_targets.RdChecks that targets matches IMURUN_TARGET_SCHEMA, that every
named location exists in loc_ids, that age_low <= age_high, and that the
requested ages and derived cohorts fall within max_age and max_cohort.
Examples
tg <- data.frame(loc_id = "A;B", year = 12, age_low = 5, age_high = 7)
validate_targets(tg, loc_ids = c("A", "B"), max_cohort = 15, max_age = 8)