View source: R/class-parameter_set.R
parameter_set | R Documentation |
Set of model parameters
parameter_set(model, param = list(), tag = NA_character_)
model |
|
param |
named |
tag |
|
an S4 object of type parameter_set
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.