rename_compartments: Rename model compartments

View source: R/utils.R

rename_compartmentsR Documentation

Rename model compartments

Description

Rename model compartments

Usage

rename_compartments(run, compartments = NULL)

Arguments

run

pmxploit NONMEM run object.

compartments

named integer vector with new compartments names as items names and old compartments number as values.

Value

A NONMEM run object.

Examples

renamed_EXAMPLERUN <- EXAMPLERUN %>%
                        rename_compartments(compartments = c("Alirocumab (nM)" = 2,
                                                             "PCSK9 (nM)" = 3))

EXAMPLERUN %>% plot_dv_vs_predictions(compartment = 2:3)
renamed_EXAMPLERUN %>% plot_dv_vs_predictions(compartment = 2:3)

pnolain/pmxploit documentation built on Jan. 31, 2024, 1:16 p.m.