View source: R/preprocessing_imputation.R
impute_knn | R Documentation |
Imputes all missing values with the KNN algorithm
impute_knn(data, na_indicators = c(""), k = 10, verbose = FALSE)
data |
A data source, that is one of the major R formats: data.table, data.frame, matrix, and so on. |
na_indicators |
A list containing the values that will be treated as NA indicators. By default the list is c(”). WARNING Do not include NA or NaN, as these are already checked in other criterion. |
k |
An integer describing the number of nearest neighbours to use. By default set to 10. |
verbose |
A logical value, if set to TRUE, provides all information about preprocessing process, if FALSE gives none. |
Imputed dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.