remove_peripheral_compartment function

remove_peripheral_compartment

remove_peripheral_compartment

Remove a peripheral distribution compartment from model

If name is set, a peripheral compartment will be removed from the compartment with the specified name.

Initial estimates:

== =================================================== n == =================================================== 2 (equation could not be rendered, see API doc on website) 3 (equation could not be rendered, see API doc on website) == ===================================================

remove_peripheral_compartment(model, name = NULL)

Arguments

  • model: (Model) Pharmpy model
  • name: (str) Name of compartment to remove peripheral compartment from.

Returns

(Model) Pharmpy model object

Examples

## Not run: model <- load_example_model("pheno") model <- set_peripheral_compartments(model, 2) model <- remove_peripheral_compartment(model) model$statements$ode_system ## End(Not run)

See Also

set_peripheral_compartment

add_peripheral_compartment

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04