Description Usage Arguments Value See Also Examples
Changing classes of many variables in the data frame simultaneously. The function also checks if one is converting a factor to numeric variable and it will make a correct conversion without loss of digits.
1 | changeClass(df, new)
|
df |
A data frame. |
new |
A character vector which specifies desired class of each
variable in |
The data frame df
where each column has a class as specified
in new
.
as.numeric
, as.character
, as.factor
which this function wraps
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.