Retrieves the Stata label set in the dataset for all or an vector of variable names.
get.label.name(dat, var.name = NULL, lang = NA)
data.frame. Data.frame created by read.dta13
.
character vector. Variable names. If NULL
, get
names of all label sets.
character. Label language. Default language defined by
get.lang
is used if NA
Returns an named vector of variable labels
Stata stores factor labels in variable independent labels sets. This function retrieves the name of the label set for a variable.