Learn R Programming

specmine (version 3.1.6)

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
# NOT RUN {
  ## Example of getting a metadata value
  library(specmine.datasets)
  data(cachexia)
  metadata.value = get_metadata_value(cachexia, "Muscle.loss", "PIF_178")
# }

Run the code above in your browser using DataLab