defac | R Documentation |
This is a shortcut function to convert a factor to a character variable without having to type as.character()
defac(x)
x |
a factor to be turned into a character |
A character
Jared E. Knowles
factor
, levels
to understand the R
implementation of factors.
a <- as.factor(LETTERS)
summary(a)
b <- defac(a)
class(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.