get_metadata_value: Get metadata value

Description Usage Arguments Value Examples

Description

Get the metadata value

Usage

1
get_metadata_value(dataset, variable, sample)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

variable

index or name of the metadata variable.

sample

index or name of the sample.

Value

Return the corresponding metadata value of the sample.

Examples

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

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