Set of model parameters
parameter_set(model, param = list(), tag = NA_character_)
an S4 object of type ParameterSet
character
, a string containing a model name, e.g. "GUTS-RED-IT"
named list
of model parameters
character
, an optional identifier
model
character
, a string containing a model name, e.g. "GUTS-RED-IT"
tag
character
, an optional identifier
param
named list
of model parameters
# create a parameter set and assign it
ps <- parameter_set("GUTS-RED-IT", list(kd=0.12, hb=0.3))
GUTS_RED_IT() %>% set_param(ps)
# multiple scenarios can be modified at once
c(GUTS_RED_IT(), GUTS_RED_IT()) %>%
set_param(ps)
# model names must match, otherwise an error will be raised
try(GUTS_RED_SD() %>% set_param(ps))
Run the code above in your browser using DataLab