Learn R Programming

pharmr (version 1.4.0)

set_peripheral_compartments: 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)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model

n

(numeric) Number of transit compartments

name

(str) Name of compartment to add peripheral to.

See Also

add_peripheral_compartment

remove_peripheral_compartment

Examples

Run this code
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