unlab: Drop variable label and value labels

Description Usage Arguments Value See Also Examples

View source: R/labels.R

Description

unlab returns variable x without variable labels and value labels

Usage

1
2
3

Arguments

x

Variable(s). Vector/data.frame/list.

Value

unlab returns original variable x without variable label, value labels and class.

See Also

drop_lab unvl

Examples

1
2
3
4
5
raw_var <- rep(1:2,5)
var_with_lab <- raw_var
var_lab(var_with_lab) <- "Income"
val_lab(var_with_lab) <- c("Low"=1,"High"=2)
identical(raw_var,unlab(var_with_lab)) # should be TRUE

adayim/cctab documentation built on Dec. 18, 2021, 10:26 p.m.