Description Usage Arguments Value Examples
Remove variables from the dataset by the number of NAs
1 | remove_variables_by_nas(dataset, max.nas = 0, by.percent = FALSE)
|
dataset |
list representing the dataset from a metabolomics experiment. |
max.nas |
number of NAs (or percentage) to which samples with more NAs will be removed. |
by.percent |
if TRUE the max.nas argument is a percentage. |
Returns the dataset with the variables with more NAs than the limit removed.
1 2 3 4 | ## Example of removing variables by NAs
library(specmine.datasets)
data(propolis)
propolis = remove_variables_by_nas(propolis, 40, by.percent = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.