Learn R Programming

specmine (version 1.0)

get_metadata_value: Get metadata value

Description

Get the metadata value

Usage

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

Run this code
  ## Example of getting a metadata value
  data(cachexia)
  metadata.value = get_metadata_value(cachexia, "Muscle.loss", "PIF_178")

Run the code above in your browser using DataLab