Learn R Programming

specmine (version 3.1.6)

get_metadata_var: Get metadata variable

Description

Get the values of a metadata variable from the dataset.

Usage

get_metadata_var(dataset, var)

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

Run this code
# NOT RUN {
  ## Example of getting a metadata variable
  library(specmine.datasets)
  data(cachexia)
  metadata.variable = get_metadata_var(cachexia, "Muscle.loss")
# }

Run the code above in your browser using DataLab