Description Usage Arguments Value Examples
Impute missing values with KNN
1 | impute_nas_knn(dataset, k = 10, ...)
|
dataset |
list representing the dataset from a metabolomics experiment. |
k |
the number of nearest neighbors. |
... |
additional values to impute.knn function. |
Returns the dataset with no missing values.
1 2 3 4 | ## Example of NA imputation with knn
library(specmine.datasets)
data(propolis)
dataset = impute_nas_knn(propolis, k=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.