powered by
Gets a subset of specific samples according to metadata's values from the dataset.
subset_samples_by_metadata_values(dataset, metadata.varname, values)
list representing the dataset from a metabolomics experiment.
name of the metadata's variable.
values of the metadata's variable.
Returns the dataset with the set of samples according to the metadata's values.
# NOT RUN { ## Example of subsetting samples by metadata's values data(cassavaPPD) subset = subset_samples_by_metadata_values(cassavaPPD, "varieties", c("BRA","IAC")) # }
Run the code above in your browser using DataLab