DMwR (version 0.4.1)

centralImputation: Fill in NA values with central statistics

Description

This function fills in any NA value in all columns of a data frame with the statistic of centrality (given by the function centralvalue()) of the respective column.

Usage

centralImputation(data)

Arguments

data
The data frame

Value

A new data frame with no NA values

References

Torgo, L. (2010) Data Mining using R: learning with case studies, CRC Press (ISBN: 9781439810187).

http://www.dcc.fc.up.pt/~ltorgo/DataMiningWithR

See Also

knnImputation, centralValue, complete.cases, na.omit

Examples

Run this code
data(algae)
cleanAlgae <- centralImputation(algae)
summary(cleanAlgae)

Run the code above in your browser using DataCamp Workspace