Learn R Programming

Kmisc (version 0.5.0)

factor_to_char: Converts Factors to Characters in an Object

Description

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

Usage

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.