Description Usage Arguments Value Author(s) References See Also Examples
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.
1 |
data |
The data frame |
A new data frame with no NA values
Luis Torgo ltorgo@dcc.fc.up.pt
Torgo, L. (2016) Data Mining using R: learning with case studies, second edition, Chapman & Hall/CRC (ISBN-13: 978-1482234893).
knnImputation
, centralValue
, complete.cases
, na.omit
1 2 3 | data(algae,package="DMwR2")
cleanAlgae <- centralImputation(algae)
summary(cleanAlgae)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.