ll_val_labels {zmisc} | R Documentation |
Get or set value labels of a labelled variable
Description
Gets or sets the value labels (labels
attribute) of a labelled vector. The
getters/setters should be used rather than manipulating attributes directly,
since these functions perform checks to ensure that the result, and the
resulting labelled variable, are valid.
Usage
ll_val_labels(x, always = FALSE)
ll_val_labels(x) <- value
Arguments
x |
A labelled variable |
always |
Always return at least an empty vector of the correct type, even if the attribute is not set. |
See Also
Other labelled light:
ll_assert_labelled()
,
ll_labelled()
,
ll_to_character()
,
ll_var_label()
,
threadbare()
[Package zmisc version 0.2.3 Index]