df_typecast_all | R Documentation |
Bulk convert columns of a data.frame that share a certain class to a different class. Use with care, will introduce NAs for some conversion attempts
df_typecast_all(dat, from = "factor", to = "character")
dat |
a data.frame |
from |
column type to cast |
to |
target column type |
a data frame with all columns of class from converted to class to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.