to.char | R Documentation |
Loops through columns in dataframe and coerces them to type "character"
.
to.char(df, factors.only = TRUE)
df |
a matrix or dataframe. |
factors.only |
a logical vector specifying whether only factor columns should be converted. |
A dataframe
Jason Grafmiller
to.factor
, to.numeric
df <- iris
summary(df)
df <- to.char(df)
summary(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.