powered by
Impute missing values with KNN
impute_nas_knn(dataset, k = 10, ...)
list representing the dataset from a metabolomics experiment.
the number of nearest neighbors.
additional values to impute.knn function.
Returns the dataset with no missing values.
# NOT RUN { ## Example of NA imputation with knn library(specmine.datasets) data(propolis) dataset = impute_nas_knn(propolis, k=10) # }
Run the code above in your browser using DataLab