powered by
Gets a subset of specific samples from the dataset.
subset_samples(dataset, samples, rebuild.factors = TRUE)
list representing the dataset from a metabolomics experiment.
vector with indexes or names of the samples to select
if TRUE the metadata factors are rebuilded.
Returns the dataset with the selected set of samples.
# NOT RUN { ## Example of subsetting samples data(cachexia) subset = subset_samples(cachexia, c("PIF_178","PIF_132")) # }
Run the code above in your browser using DataLab