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

View source: R/labels.R

as.labelledR Documentation

Recode vector into numeric vector with value labels

Description

Recode vector into numeric vector with value labels

Usage

as.labelled(x, label = NULL)

is.labelled(x)

Arguments

x

numeric vector/character vector/factor

label

optional variable label

Value

numeric vector with value labels

Examples

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



gdemin/expss documentation built on April 13, 2024, 2:32 p.m.