Learn R Programming

pharmr (version 2.2.0)

set_property: 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)

Value

(Model | DataInfo) An updated Model or DataInfo object

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

See Also

annotate_unit - Annotate the unit of a data variable

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- set_property(model, "APGR", "categories", c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
}

Run the code above in your browser using DataLab