i_labels | R Documentation |
set value labels
i_labels(x, ..., overwrite = FALSE)
x |
vector |
... |
set labels for values (e.g. label_of_choice = 1 or "Label of Choice" = 1); remove single label with NULL = value (e.g. NULL = 1); removes all value labels when only NULL (e.g. i_label(x, NULL)) |
overwrite |
when TRUE, all existing labels are dropped and replaced with the new ones |
In order to assign a specific label to multiple values a named list can also be provided to ... (e.g. list(missing = -9:-1, valid = 1:3))
A named vector can also be provided (e.g. setNames(c(1,2), c("A","B")))
returns x with value labels applied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.