View source: R/changeTypeOfColumns.R
Modify the data type of specified columns. Can coerce the column to the type specified by user.
1 | changeTypeOfColumns(df, rangeOfColumns, type)
|
df |
A data frame for which we wish to change the data type of the columns |
rangeOfColumns |
A vector of natural numbers specifyung which columns to coerce. |
type |
One of 'numeric', 'character', 'factor' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.