View source: R/functions_wrapper.R
set_peripheral_compartments | R Documentation |
Sets the number of peripheral compartments for central compartment to a specified number.
If name is set, the peripheral compartment will be added to the compartment with the specified name instead.
set_peripheral_compartments(model, n, name = NULL)
model |
(Model) Pharmpy model |
n |
(numeric) Number of transit compartments |
name |
(str (optional)) Name of compartment to add peripheral to. |
(Model) Pharmpy model object
add_peripheral_compartment
remove_peripheral_compartment
## Not run:
model <- load_example_model("pheno")
model <- set_peripheral_compartments(model, 2)
model$statements$ode_system
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.