removeFactorColumns: Convert factor columns in a rectangular object

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Convert factor columns in a rectangular object

Usage

1

Arguments

x

A list-like rectangular object such as a data.frame, data.table, or DataFrame.

Value

x with factor columns converted to either integer or character, as appropriate.

Examples

1
2
x <- data.frame(a=factor(LETTERS[1:5]), b=factor(runif(5, 0, 1)))
removeFactorColumns(x)

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.