Can you label variables in R?
Variable label is human readable description of the variable. R supports rather long variable names and these names can contain even spaces and punctuation but short variables names make coding easier. Variable label can give a nice, long description of variable.
How to label variable values in R?
Variable labels
It's possible to add a variable label to several columns of a data frame using a named list. To get the variable label, simply call var_label() . To remove a variable label, use NULL . In RStudio, variable labels will be displayed in data viewer.