Description Usage Arguments Value Author(s) Examples
Converts the factors in lists and data.frames to character. In lists this operates only at the top level (not whole trees in nested lists). This is generally done because characters are easier to work with.
1 |
df |
data.frame (or list) containing factors |
Returns a data.frame or list (depending on what was supplied) where all factors have been converted to characters.
Aaron Hayman
1 2 3 | d=data.frame(a=1:5,b=letters[5:1])
str(d)
str(fac2char(d))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.