ez.2char | R Documentation |
convert a column of factor type (or all factor columns) in a data frame into character type as.character(). Check with is.factor(). If not is.factor(), remain untouched.
ez.2char(x, col = NULL)
x |
a data frame or a vector/col |
col |
internally evaluated by eval('dplyr::select()')
|
Both value and variable label attributes will be kept when converting variables to characters.
returns a character vector or a data frame with changed col(s)
ez.2char only coverts factor, ez.str coverts all types, both use as.character
ez.str
Other data transformation functions:
ez.2factor()
,
ez.2label()
,
ez.2long()
,
ez.2lower()
,
ez.2value()
,
ez.2wide()
,
ez.compute()
,
ez.del()
,
ez.label.get()
,
ez.label.set()
,
ez.labels.get()
,
ez.labels.set()
,
ez.move()
,
ez.newcol()
,
ez.num()
,
ez.recode()
,
ez.recols()
,
ez.recol()
,
ez.rename()
,
ez.replace()
,
ez.rncols()
,
ez.rncol()
,
ez.select()
,
ez.sort()
,
ez.split()
,
ez.str()
,
ez.unique()
,
left_join()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.