get_column_name: get_column_name

View source: R/functions_wrapper.R

get_column_nameR Documentation

get_column_name

Description

Retrieve the column with a certain type

If multiple columns have the same type an exception will be raised.

Usage

get_column_name(model, type)

Arguments

model

(Model) Pharmpy model

type

(str) Column type. See :py:attr:pharmpy.model.datainfo.ColumnInfo.type

Value

(str or NULL) Name of the column. NULL if no column found

Examples

## Not run: 
model <- load_example_model("pheno")
get_column_name(model, "dose")

## End(Not run)


pharmr documentation built on May 28, 2026, 5:08 p.m.