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)

worcs documentation built on July 20, 2022, 5:06 p.m.