data_unlabel: Drop value labels

View source: R/label_data.R

data_unlabelR Documentation

Drop value labels

Description

Coerces factor and ordered variables to class integer.

Usage

data_unlabel(x, variables = names(x)[sapply(x, inherits, what = "factor")])

Arguments

x

A data.frame.

variables

Column names of x to coerce to integer.

Value

A data.frame.

Examples

## Not run: 
if(interactive()){
 df <- data.frame(x = factor(c("a", "b")))
 data_unlabel(df)
 }

## End(Not run)

cjvanlissa/worcs documentation built on Nov. 7, 2024, 1:20 p.m.