Learn R Programming

expss (version 0.11.6)

unlab: Drop variable label and value labels

Description

unlab returns variable x without variable labels and value labels

Usage

unlab(x)

drop_all_labels(x)

Value

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

Arguments

x

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

See Also

unvr unvl

Examples

Run this code
raw_var = rep(1:2,5)
var_with_lab = set_var_lab(raw_var,"Income")
val_lab(var_with_lab) = c("Low"=1,"High"=2)
identical(raw_var,unlab(var_with_lab)) # should be TRUE

Run the code above in your browser using DataLab