get_dv_symbol: get_dv_symbol

View source: R/functions_wrapper.R

get_dv_symbolR Documentation

get_dv_symbol

Description

Get the symbol for a certain dvid or dv and check that it is valid

Usage

get_dv_symbol(model, dv = NULL)

Arguments

model

(Model) Pharmpy model

dv

(Expr or str or numeric (optional)) Either a dv symbol, str or dvid. If NULL (default) return the only or first dv.

Value

(sympy.Symbol) DV symbol

Examples

## Not run: 
model <- load_example_model("pheno")
get_dv_symbol(model, "Y")
get_dv_symbol(model, 1)

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.