A labelled vector is a common data structure in other statistical environments,
allowing you to assign text labels to specific values.
Usage
labelled(x, labels)
is.labelled(x)
Arguments
x
A vector to label. Must be either numeric (integer or double) or
character.
labels
A named vector. The vector should be the same type as
x. Unlike factors, labels don't need to be exhaustive: only a fraction
of the values might be labelled.