Description Usage Arguments Value Author(s) See Also Examples
Functions for transformation of variables.
By default, R converts character columns to factors.
Instead of re-reading the data using stringsAsFactors
, the
Safechars
function will identify which columns are currently factors, and convert them all to characters.
1 2 3 4 5 |
.data |
data.table or data.frame object. |
vars |
Character or vector of characters with variables names to transform. |
.data |
a |
Data.table object with transformed variables.
Daniel Marcelino, dmarcelino@live.com.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.