R/check_model.R
check_model.Rd
Check model name and return standardized code
check_model(model)
Character vector of model names. Valid options are: "DYRESM-CAEDYM", "GLM-AED", "GOTM-WET" or their corresponding codes "dy_cd", "glm_aed", "gotm_wet".
@importFrom cli cli_abort
Character vector of standardized model codes.
check_model(c("GLM-AED", "gotm_wet")) #> [1] "glm_aed" "gotm_wet"