View source: R/loadDataADaMSDTM.R
getLabelVars | R Documentation |
Get label of the variables in SAS dataset(s)
getLabelVars(data, labelVars = NULL)
data |
Data.frame with SAS dataset(s) or list of those. |
labelVars |
(optional) Named character vector with additional labels. |
Named vector with variable labels.
Laure Cougnaud
data(dataADaMCDISCP01)
labelVars <- attr(dataADaMCDISCP01, "labelVars")
# extract label for all variables from specified datasets:
getLabelVars(data = dataADaMCDISCP01[c("ADLBC", "ADVS")], labelVars = labelVars)
# extracted from specified labelVars, e.g. to specify custom label for specific variable(s)
labelVarsCustom <- getLabelVars(
data = dataADaMCDISCP01,
labelVars = c(USUBJID = "Subject identifier for my study")
)
labelVarsCustom["USUBJID"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.