Units | R Documentation |
Add variable units to data.frame (or data.table).
Units(object, units)
object |
A data.frame or data.table |
units |
Named list of units. Names are variable names. If omitted, show existing units. |
If the object has units existing units are replaced by given units.
The object augmented with attribute "units"
Thomas A. Gerds <tag@biostat.ku.dk>
data(Diabetes) Diabetes <- Units(Diabetes,list(BMI="kg/m^2")) Units(Diabetes) Diabetes <- Units(Diabetes,list(bp.1s="mm Hg",bp.2s="mm Hg")) Units(Diabetes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.