Skip to contents

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