Note 1: vlv
is a compact alias for val_labs_vec
: they do the same thing,
and the former is easier to type.
Note 2: 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.
val_labs_vec
works with other labelr functions to facilitate creation,
modification, accessing, use, and destruction of variable-specific value
labels. This functionality is equivalent to calling use_val_labs
with a
single variable passed to the vars argument, except that the latter returns
the entire data.frame with that variable modified, while val_labs_vec
returns only that single modified variable itself (as a vector)