Note 1: use_val_lab1
is a variant of use_val_labs
that allows you to
specify only one variable at a time but that allows you to pass its name
without quoting it (compare use_val_lab1(mtcars, am) to
use_val_labs(mtcars, "am")).
Note 2: uvl1
is a compact alias for use_val_lab1
: they do the same thing,
and the former is easier to type.
Note 3: This command is intended exclusively for interactive use. In
particular, the var argument must be the literal name of a single variable
(column) found in the supplied data.frame and may NOT be, e.g., the name of a
character vector that contains the variable (column name) of interest. If you
wish to supply a character vector with the names of variables (columns) of
interest, use use_val_labs()
.
use_val_lab1
replaces a single, value-labeled data.frame column with a
"value labels-on" version of that column. Here, "labels-on" means that the
column's original values are replaced with the corresponding value labels.
Note that the modified column is a simple, self-contained character variable
that cannot itself be converted or reverted back to the original ("labels-off")
values of its parent/source column.