Description Usage Arguments Value Examples
Imputes missing values integer/numeric columns with their median. Imputes missing calues in character/factor columns with their mode. If a column does not contain even one non-missing value, then error is thrown.
1 | roughImpute(dataset)
|
dataset |
A dataframe |
A dataframe (also inherits data.table class)
1 2 | iris_missing <- missRanger::generateNA(iris, p = 0.2, seed = 1)
roughImpute(iris_missing)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.