spssdictionary.GetVariableLabel Function (R)
spssdictionary.GetVariableLabel(variable). Returns a character string containing the variable label for the specified variable in the active dataset . The argument is the name of the variable in quotes or the index value of the variable. Index values represent position in the active dataset, starting with 0 for the first variable in file order. If the variable does not have a defined variable label, a null string is returned.
Example
varlabel <- spssdictionary.GetVariableLabel("mpg")