as.labelled: Recode vector into numeric vector with value labels

Description Usage Arguments Value Examples

Description

Recode vector into numeric vector with value labels

Usage

1
2
3
as.labelled(x, label = NULL)

is.labelled(x)

Arguments

x

numeric vector/character vector/factor

label

optional variable label

Value

numeric vector with labels

Examples

1
2
character_vector = c("one", "two",  "two", "three")
as.labelled(character_vector, label = "Numbers")

gdemin/expss documentation built on May 16, 2019, 11:14 p.m.