Get the compartment number from a compartment name

cmtn(x, ...)

# S4 method for mrgmod
cmtn(x, tag, ...)

Arguments

x

model object

...

passed along

tag

compartment name

Examples

mod <- mrgsolve::house()
mod %>% cmtn("CENT")
#> [1] 2