powered by
Recode vector into numeric vector with value labels
as.labelled(x, label = NULL)is.labelled(x)
is.labelled(x)
numeric vector/character vector/factor
optional variable label
numeric vector with value labels
# NOT RUN { character_vector = c("one", "two", "two", "three") as.labelled(character_vector, label = "Numbers") # }
Run the code above in your browser using DataLab