View source: R/labelled_to_character.R
labelled_to_character | R Documentation |
Convert labelled numerics to character
labelled_to_character(x)
x |
a labelled numeric |
a character vector
Sven Halvorson (svenpubmail@gmail.com)
labelled_num = sample(1:3, size = 10, replace = TRUE)
expss::val_lab(labelled_num) = c(
'Tyre' = 1,
'Byblos' = 2,
'Ugarit' = 3
)
table(
labelled_num,
labelled_to_character(labelled_num)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.