View source: R/functions_wrapper.R
| set_unit | R Documentation |
Specify the unit of a column
Note that no conversion of units will happen if the unit was already set.
set_unit(model_or_datainfo, column, unit)
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. |
unit |
(str) The unit |
(Model | DataInfo) An updated Model or DataInfo object
convert_unit - Convert between units for a variable
## Not run:
model <- load_example_model("pheno")
model <- set_unit(model, "WGT", "kg")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.