powered by
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) Pharmpy model object
(Model) Pharmpy model
(numeric) Number of transit compartments
(str) Name of compartment to add peripheral to.
add_peripheral_compartment
remove_peripheral_compartment
if (FALSE) { model <- load_example_model("pheno") model <- set_peripheral_compartments(model, 2) model$statements$ode_system }
Run the code above in your browser using DataLab