powered by
Remove samples from the dataset by the number of NAs
remove_samples_by_nas(dataset, max.nas = 0, by.percent = FALSE)
list representing the dataset from a metabolomics experiment.
number of NAs (or percentage) to which samples with more NAs will be removed.
if TRUE the max.nas argument is a percentage.
Returns the dataset with the samples with more NAs than the limit removed.
# NOT RUN { ## Example of removing samples by NAs library(specmine.datasets) data(propolis) propolis = remove_samples_by_nas(propolis, 40, by.percent = TRUE) # }
Run the code above in your browser using DataLab