Description Usage Arguments Details Value References Examples
View source: R/knn_impute_class.R
k-nearest neighbour missing value imputation replaces missing values in the data with the average of a predefined number of the most similar neighbours for which the value is present
1 2 3 4 5 6 7 | knn_impute(
neighbours = 5,
sample_max = 50,
feature_max = 50,
by = "features",
...
)
|
neighbours |
(numeric) The number of neighbours (k) to use for imputation. The default is |
sample_max |
(numeric) The maximum percent missing values per sample. The default is |
feature_max |
(numeric) The maximum percent missing values per feature. The default is |
by |
(character) Impute using similar "samples" or "features". Default features. The default is |
... |
Additional slots and values passed to |
This object makes use of functionality from the following packages:
pmp
A knn_impute
object.
Jankevics A, Weber RJM (2020). pmp: Peak Matrix Processing and signal batch correction for metabolomics datasets. R package version 1.1.0.
1 | M = knn_impute()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.