Learn R Programming

specmine (version 3.1.6)

subset_metadata: Subset metadata

Description

Subsets the metadata according to the specified metadata's variables.

Usage

subset_metadata(dataset, variables)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

variables

metadata's variables.

Value

Returns the dataset with the metadata subsetted.

Examples

Run this code
# NOT RUN {
  ## Example of subsetting samples
  library(specmine.datasets)
  data(propolis)
  subset = subset_metadata(propolis, c("seasons"))
# }

Run the code above in your browser using DataLab