factor_to_char: Converts Factors to Characters in an Object

Description Usage Arguments Details

View source: R/misc.R

Description

Converts factors to characters in an object. Leaves non-character elements untouched.

Usage

1
factor_to_char(X, inplace = FALSE)

Arguments

X

an object.

inplace

Boolean; if TRUE we modify the object in place. Useful if you're modifying a list and don't want to force a copy, but be wary of other symbols pointing as the same data.

Details

We iterate through all elements in the object (e.g. if it is a list) and convert anything that is a factor into a character.


Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to factor_to_char in Kmisc...