Description Usage Arguments Value Examples
Gets a subset of specific samples from the dataset.
1 | subset_samples(dataset, samples, rebuild.factors = TRUE)
|
dataset |
list representing the dataset from a metabolomics experiment. |
samples |
vector with indexes or names of the samples to select |
rebuild.factors |
if TRUE the metadata factors are rebuilded. |
Returns the dataset with the selected set of samples.
1 2 3 4 | ## Example of subsetting samples
library(specmine.datasets)
data(cachexia)
subset = subset_samples(cachexia, c("PIF_178","PIF_132"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.