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
2
3
factor_to_char(X, inplace = FALSE)

factor2char(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 at 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.


kevinushey/Kmisc documentation built on May 20, 2019, 9:08 a.m.