Description Usage Arguments Value
View source: R/replace_missing_data.R
Replace missing data within each numeric column of a data frame with the column median, plus or minus some random noise, in order to train classifiers that do not easily ignore missing data (e.g. random forests or support vector machines).
1 | replace_missing_data(dat, noise_pct = 0.05)
|
dat |
the data frame to replace missing data in |
noise_pct |
the standard deviation of the random normal distribution from which to draw added noise, expressed as a percentage of the standard deviation of the non-missing values in each column |
a data frame with missing values in each numeric column replaced by the column median, plus or minus some random noise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.