Description Usage Arguments Value Examples
Gets a subset of specific samples according to metadata's values from the dataset.
1 2 | subset_samples_by_metadata_values(dataset, metadata.varname,
values)
|
dataset |
list representing the dataset from a metabolomics experiment. |
metadata.varname |
name of the metadata's variable. |
values |
values of the metadata's variable. |
Returns the dataset with the set of samples according to the metadata's values.
1 2 3 4 5 | ## Example of subsetting samples by metadata's values
library(specmine.datasets)
data(propolis)
subset_samples_by_metadata_values(propolis, "seasons",
c("sm","au"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.