get_data_value: Get data value

Description Usage Arguments Value Examples

Description

Get a data value given the x-axis labels and the sample

Usage

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

Arguments

dataset

list representing the dataset from a metabolomics experiment.

x.axis.val

index or name of the x-axis value.

sample

index or name of the sample.

by.index

boolean value indicating if the x-axis value and sample are represented as index or not.

Value

Returns a numeric with the data point value.

Examples

1
2
3
4
5
  ## Example of getting a data value from the dataset
  library(specmine.datasets)
  data(cachexia)
  data.value = get_data_value(cachexia, "Creatine", "PIF_178", 
	       by.index = FALSE)

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