set_val_labels: Attach value labels to a variable or vector
Description
This function attaches character labels as "value.labels" attribute
to a variable or vector "x", resp. to all variables of a data frame
if "x" is a data.frame. These value labels will be accessed
by most of this package's functions, in order to automatically set values
or legend labels.
Usage
set_val_labels(x, labels)
Arguments
Value
"x" with attached value labels.
See Also
http://www.strengejacke.de/sjPlot/datainit/{sjPlot manual: data initialization}
http://www.strengejacke.de/sjPlot/view_spss/{sjPlot manual: inspecting (SPSS imported) data frames}