Description Usage Arguments Details Value Examples
Get labelled values of a labelled vector
1 | labelled_values(x, na.rm = FALSE)
|
x |
a vector |
na.rm |
a logical value indicating whether NA values should be stripped. Normally NA is not labelled and is not returned even with na.rm = FALSE. |
Get labelled values of a labelled vector
vector of values with labels
1 2 | x <- haven::labelled(c(1, 1, 2, 3, 4), c(Male = 1, Male = 2, Female = 3))
labelled_values(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.