Description Usage Arguments Examples
Apply labels to several variables simultaneously from a definition found in a list object.
1 | define_labels(x, labels)
|
x |
A data.frame. |
labels |
A list containing label information, e.g. var = "Variable name" |
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(Hmisc)
getHdata(plasma)
#Look-up labels:
label(plasma)
#Remove labels:
clean_plasma <- clear_labels(plasma)
label(clean_plasma)
#Define variable labels from a list:
var_names <- list(age = "Age in years", smokstat = "Smoking status")
named_plasma <- define_labels(clean_plasma, var_names)
label(named_plasma)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.