powered by
Retrieve the column with a certain type
If multiple columns have the same type an exception will be raised.
get_column_name(model, type)
(str or NULL) Name of the column. NULL if no column found
(Model) Pharmpy model
(str) Column type. See :py:attr:pharmpy.model.datainfo.ColumnInfo.type
if (FALSE) { model <- load_example_model("pheno") get_column_name(model, "dose") }
Run the code above in your browser using DataLab