char_to_factor: Converts Characters to Factors in an Object

Description Usage Arguments

View source: R/misc.R

Description

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

Usage

1
2
3
char_to_factor(X, inplace = FALSE, ...)

char2factor(X, inplace = FALSE, ...)

Arguments

X

an object.

inplace

boolean; if TRUE the object is modified 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.

...

Ignored.


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