get_unit_of {pharmr}R Documentation

get_unit_of

Description

Derive the physical unit of a variable in the model

Unit information for the dataset needs to be available. The variable can be defined in the code, a dataset olumn, a parameter or a random variable.

Usage

get_unit_of(model, variable)

Arguments

model

(Model) Pharmpy model object

variable

(str) Find physical unit of this variable

Value

(unit expression) A sympy physics.units expression

Examples

## Not run: 
model <- load_example_model("pheno")
get_unit_of(model, "Y")
get_unit_of(model, "V")
get_unit_of(model, "WGT")

## End(Not run)


[Package pharmr version 0.96.0 Index]