set_params {isotracer} | R Documentation |
Set the parameters in a network model
set_params(nm, params, force = TRUE, quick = FALSE)
nm |
A |
params |
A named vector or a tibble with columns c("parameter", "value") containing the (global) parameter values. |
force |
Boolean, if FALSE will not overwrite already set parameters. |
quick |
Boolean, if TRUE take some shortcuts for faster parameter settings when called by another function. This should usually be left to the default (FALSE) by a regular package user. |
A networkModel
object.
m <- aquarium_mod
p <- sample_params(m)
m2 <- set_params(m, p)
m2$parameters