Description Usage Arguments Value Author(s) Examples
'correctType' reads data from .csv file into the correct data type. This function processes the raw data into the correct data type.
1 | correctType(raw, datatype, cols = NULL)
|
raw |
Data in data frame format. |
datatype |
The data type for each raw data column. Accepted data types are factor, numeric, integer, date, ordered, and character. |
cols |
If not all columns need correction, specify the column number that need correction. |
Returns the data set with the corrected data type.
Henry Nanji, Saisakul Chernbumroong
1 2 3 | library(FactoMineR)
data(wine)
correctType(wine, "factor", 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.