set_params: Set the parameters in a network model

View source: R/ui_model-building.R

set_paramsR Documentation

Set the parameters in a network model

Description

Set the parameters in a network model

Usage

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

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.

Value

A networkModel object.

Examples

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


isotracer documentation built on Sept. 22, 2023, 1:07 a.m.