Description Usage Arguments Details Examples
View source: R/prepare_transform_data.R
Substitutes missing values of a specific set of columns with the character "None".
1 | prepare.transform_data(data, na.col)
|
data |
Input data which contains missing values |
na.col |
Set of column names which contain at least one missing value that is then substituted with the character "None" |
Especially in the given dataset missing values often yielded semantical meaning. To generate an additional class when transformed into numerical values this function is used to substitutes those missing values not at random with a character "None" that should get transformed into an numeric value instead of NA.
1 | KaggleHouse:::prepare.transform_data(data.frame(id = c(1,2,NA)), "id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.