View source: R/functions_wrapper.R
| set_property | R Documentation |
Specify a property of a column
See :py:attr:pharmpy.DataInfo.properties for documentation on data properties.
set_property(model_or_datainfo, column, property, value)
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 |
(Model | DataInfo) An updated Model or DataInfo object
set_unit - Set unit of a data variable
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.