View source: R/labelled_light.R
| ll_labelled | R Documentation |
The labelled_light (ll) collection is a minimal implementation of core
functions for creating and managing haven_labelled variables, and with
minimal dependencies. These functions, prefixed with ll_ rely only on base
R, and operate only on objects of type haven_labelled. All functions check
internally that the variables have the correct class and the correct
structure for labelled variables, satisfying the (minimal) specification
inherent in the parameter documentation of the haven::labelled() function.
The constructor, ll_labelled(), creates a labelled variable satisfying that
specification.
ll_labelled(x = double(), labels = NULL, label = NULL)
x |
A vector to label. Must be either numeric (integer or double) or character. |
labels |
A named vector or |
label |
A short, human-readable description of the vector. |
A valid labelled variable.
Other labelled light:
ll_assert_labelled(),
ll_to_character(),
ll_val_labels(),
ll_var_label(),
threadbare()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.