Description Usage Arguments Value Author(s) References See Also Examples
View source: R/imputeMissings.R
Character vectors and factors are imputed with the mode. Numeric and integer vectors are imputed with the median.
1 |
data |
A data frame. |
A data frame.
Dirk Van den Poel, Michel Ballings, Andrey Volkov, Jeroen D”haen, Michiel Van Herwegen
Maintainer: Michel Ballings <Michel.Ballings@GMail.com>
Van den Poel, D., Ballings, M., Volkov, A., D”haen, J., Van Herwegen, M., Predictive Analytics for analytical Customer Relationship Management using SAS, Oracle and R, Springer, Forthcoming.
Other functions in this package:
imputeMissings
, Aggregate
, cocktailEnsemble
, predict.cocktailEnsemble
1 2 3 4 5 6 | #create some data
data <- data.frame(V1=as.factor(c('yes','no','no',NA,'yes','yes','yes')),
V2=as.character(c(1,2,3,4,4,4,NA)),
V3=c(1:6,NA),V4=as.numeric(c(1:6,NA)))
#demonstrate function
imputeMissings(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.