set_init | R Documentation |
The initial state represents the starting values of a scenario's state variables when starting a simulation. A scenario's default initial state may be insufficient to get sensible results.
set_init(x, init)
## S4 method for signature 'vector'
set_init(x, init)
## S4 method for signature 'EffectScenario'
set_init(x, init)
x |
vector of |
init |
named numeric vector |
In theory, a scenarios's state variables can be renamed by modifying the names
of the initial state vector. However, this is strongly
discouraged as this will affect other routines such as effect()
and epx()
and may render results useless.
modified EffectScenario
objects
# Set initial biomass to 1.0
metsulfuron %>% set_init(c(BM=1.0)) %>% simulate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.