set_split: Flag some network compartments as being split compartments

View source: R/ui_model-building.R

set_splitR Documentation

Flag some network compartments as being split compartments

Description

This function automatically adds a default prior (uniform on [0,1]) for the active portion of split compartments.

Usage

set_split(nm, comps = NULL, which = NULL)

Arguments

nm

A networkModel object.

comps

Vector of strings, the names of the compartments to set split.

which

Vector of integers giving the nm rows to update. Default is to update all rows.

Value

A networkModel object.

Examples

library(magrittr)
x <- new_networkModel() %>%
   set_topo("NH4 -> algae -> daphnia") %>%
   set_split("algae")
topo(x)


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