Skip to contents

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

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