Description Usage Arguments See Also Examples
The change_params()
function is for changing the parameters in a model
object that has already been constructed. Note that this function is implemented only for model
objects that have one elemental
function for each control
slot. In the future, this may be changed.
1 | change_params(mutables, new_params, model_object)
|
mutables |
A named list. The name of each element should refer to a |
new_params |
A vector of new parameter values. The order of the vector should correspond to the order of arguments in |
model_object |
A |
1 2 3 4 5 | # Suppose a model, "model_obj", has a "DOR_control" slot with one parameter "max" that is initially set to 100.
# To change the value to 200:
mutables = list( DOR_control = "max" )
new_params = 200
change_params( mutables, new_params, model_obj )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.