Learn R Programming

isotracer (version 1.1.8)

set_params: Set the parameters in a network model

Description

Set the parameters in a network model

Usage

set_params(nm, params, force = TRUE, quick = FALSE)

Value

A networkModel object.

Arguments

nm

A networkModel object.

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.

Examples

Run this code
m <- aquarium_mod
p <- sample_params(m)
m2 <- set_params(m, p)
m2$parameters

Run the code above in your browser using DataLab