get_metadata_var: Get metadata variable

Description Usage Arguments Value Examples

Description

Get the values of a metadata variable from the dataset.

Usage

1

Arguments

dataset

list representing the dataset from a metabolomics experiment.

var

index or name of the metadata variable.

Value

Returns a vector with the values of the metadata variable.

Examples

1
2
3
4
  ## Example of getting a metadata variable
  library(specmine.datasets)
  data(cachexia)
  metadata.variable = get_metadata_var(cachexia, "Muscle.loss")

specmine documentation built on Sept. 21, 2021, 5:06 p.m.