Get data values

Share:

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
  ## Example of getting a metadata value
  data(cachexia)
  data.values = get_data_values(cachexia, c("Creatine","Serine","Lactate"), 
		by.index = FALSE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.