set_peripheral_compartments {pharmr}R Documentation

set_peripheral_compartments

Description

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.

Usage

set_peripheral_compartments(model, n, name = NULL)

Arguments

model

(Model) Pharmpy model

n

(numeric) Number of transit compartments

name

(str) Name of compartment to add peripheral to.

Value

(Model) Pharmpy model object

See Also

add_peripheral_compartment

remove_peripheral_compartment

Examples

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

## End(Not run)

[Package pharmr version 1.0.1 Index]