Learn R Programming

nlmixr2lib (version 0.3.0)

removeTransit: To remove transit compartments from the model

Description

To remove transit compartments from the model

Usage

removeTransit(
  ui,
  ntransit,
  central = "central",
  depot = "depot",
  transit = "transit",
  ktr = "ktr",
  ka = "ka"
)

Value

rxode2 model with transit compartment removed

Arguments

ui

The model as a function

ntransit

the number of transit compartments to be added

central

central compartment name

depot

depot compartment name

transit

The number of transit compartments to remove

ktr

the parameter name for the transit compartment rate

ka

absorption rate parameter name

See Also

Other absorption: addTransit(), addWeibullAbs()

Examples

Run this code

# In this example the transit is added and then a few are removed

readModelDb("PK_1cmt_des") |> addTransit(4) |> removeTransit(3)

readModelDb("PK_1cmt_des") |> addTransit(4) |> removeTransit()

Run the code above in your browser using DataLab