get_data_values: Get data values

Description Usage Arguments Value Examples

Description

Gets the values of all samples in the dataset given a set of x axis names or indexes.

Usage

1
get_data_values(dataset, x.axis.val, by.index = FALSE)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

x.axis.val

vector with the values of the x axis (could be names or indexes).

by.index

boolean value indicating if the x.axis.val is a vector of indexes or not.

Value

Returns a matrix with the values of all samples in the specified x axis.

Examples

1
2
3
4
5
  ## Example of getting a metadata value
  library(specmine.datasets)
  data(cachexia)
  data.values = get_data_values(cachexia, c("Creatine","Serine","Lactate"), 
		by.index = FALSE)

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