labelUnits | R Documentation |
Label output tables
labelUnits(x, ...)
x |
A matrix obtained with |
... |
not used |
Modify labels and values of variables in summary tables
The re-labeled matrix
Thomas A. Gerds <tag@biostat.ku.dk>
univariateTable
data(Diabetes) tab <- summary(univariateTable(gender~AgeGroups+chol+waist,data=Diabetes)) publish(tab) ltab <- labelUnits(tab,"chol"="Cholesterol (mg/dL)","<40"="younger than 40") publish(ltab) ## pass labels immediately to utable utable(gender~AgeGroups+chol+waist,data=Diabetes, "chol"="Cholesterol (mg/dL)","<40"="younger than 40") ## sometimes useful to state explicitly which variables value ## should be re-labelled utable(gender~AgeGroups+chol+waist,data=Diabetes, "chol"="Cholesterol (mg/dL)","AgeGroups.<40"="younger than 40")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.