set_property: set_property

View source: R/functions_wrapper.R

set_propertyR Documentation

set_property

Description

Specify a property of a column

See :py:attr:pharmpy.DataInfo.properties for documentation on data properties.

Usage

set_property(model_or_datainfo, column, property, value)

Arguments

model_or_datainfo

(Model or DataInfo) Model object or DataInfo object

column

(str) Name of a column. If the column contains multiple variables, e.g. DV with multiple DVs, the ID can be specified with a colon. For example "DV:1" will mean the DV column only when DVID is 1.

property

(str) Name of the property to set

value

(any) Value of the property to set

Value

(Model | DataInfo) An updated Model or DataInfo object

See Also

set_unit - Set unit of a data variable

Examples

## Not run: 
model <- load_example_model("pheno")
model <- set_property(model, "APGR", "categories", c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))

## End(Not run)

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