Skip to contents

Check model name and return standardized code

Usage

check_model(model, os_valid = FALSE)

Arguments

model

Character vector of model names. Valid options are: "DYRESM-CAEDYM", "GLM-AED", "GOTM-WET", "SIMSTRAT-AED2", "SIMSTRAT-AED" or their corresponding codes "dy_cd", "glm_aed", "gotm_wet", "simstrat_aed2", "simstrat_aed".

os_valid

Logical. If TRUE, checks if the model is valid for the current operating system.

Value

Character vector of standardized model codes.

Examples

check_model(c("GLM-AED", "gotm_wet"))
#>    GLM-AED   GOTM-WET 
#>  "glm_aed" "gotm_wet"