removeFactorColumns {PDATK} | R Documentation

## Convert factor columns in a rectangular object

### Description

Convert factor columns in a rectangular object

### Usage

    removeFactorColumns(x)

### 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

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

[Package PDATK version 1.2.0 Index]