Validate CE life-stage / parameter linkages for a model mode
Source:R/pop_model_ce_apply_year.R
pop_model_ce_validate.RdChecks whether stressor-response Life_stages / Parameters linkages are recognized by the population model in the given mode. Used by the Shiny app to flag badly-coded stressor-response rows before a run (unrecognized linkages are silent no-ops in the model).
Arguments
- life_stage
Character vector of Life_stages values as they appear in the workbook (comma-separated lists allowed, e.g. "stage_1, stage_2").
- parameter
Character vector of Parameters values ("survival", "capacity", "fecundity"; "survivorship" is accepted as an alias).
- anadromous
Logical. Model mode: salmon-only tags (u/prespawn, smig, pre-breeder stages, age-specific spawner capacity) are only valid when TRUE.