Description Usage Arguments Author(s)
R
's tendency to convert strings to factor
s is well
meaning, but occasionally annoying when munging data (e.g. when using
rbind
, or dplyr
's bind_rows
).
char_cols
turns all variables in a data.frame
into
character
variables. Optionally, if all
is set to
FALSE
, only factor
variables will be converted.
1 |
x |
A |
all |
Should all the columns (not just those of |
Brendan Rocks rocks.brendan@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.