Skip to contents

Checks 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).

Usage

pop_model_ce_validate(life_stage, parameter, anadromous = FALSE)

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.

Value

A character vector the same length as the inputs: "" when the linkage is recognized, otherwise a short plain-language problem description naming the offending tag.