Description Usage Arguments Details Examples
set_components()
calls .set_components()
and changes
a resulting parameter in the model
1 | set_components(o, vals)
|
o |
is the ipysd S3 object |
vals |
contains a list with the parameter and value to be changed |
As it's a generic function, this call is dispatched to set_component.isdpy
1 2 3 4 5 6 7 8 9 10 | ## Not run:
target <- system.file("models/vensim", "Population.mdl", package = "pysd2r")
py <- pysd_connect()
py <- read_vensim(py, target)
results <- run_model(py)
l <- list("Growth Fraction"=0.02)
set_components(py,l)
out2 <- run_model(py)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.