centralImputation: Fill in NA values with central statistics

Description Usage Arguments Value Author(s) References See Also Examples

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

1

Arguments

data

The data frame

Value

A new data frame with no NA values

Author(s)

Luis Torgo ltorgo@dcc.fc.up.pt

References

Torgo, L. (2016) Data Mining using R: learning with case studies, second edition, Chapman & Hall/CRC (ISBN-13: 978-1482234893).

http://ltorgo.github.io/DMwR2

See Also

knnImputation, centralValue, complete.cases, na.omit

Examples

1
2
3
data(algae,package="DMwR2")
cleanAlgae <- centralImputation(algae)
summary(cleanAlgae)

ltorgo/DMwR2 documentation built on May 21, 2019, 8:41 a.m.