Description Usage Arguments Value Examples
Treats the missing values of a dataset according to a specific method.
1 2 | missingvalues_imputation(dataset, method = "value",
value = 5e-04, k = 5)
|
dataset |
list representing the dataset from a metabolomics experiment. |
method |
imputation method. It can be:
|
value |
the value to replace the missing values if the method is "value". |
k |
the number of neighbors if the method is "knn". |
Returns the dataset with no missing values.
1 2 3 4 5 | ## Example of impute missing values
library(specmine.datasets)
data(propolis)
dataset = missingvalues_imputation(propolis, method = "value",
value = 0.0005)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.