Learn R Programming

specmine (version 1.0)

get_data_value: Get data value

Description

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

Usage

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

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

Run this code
  ## Example of getting a data value from the dataset
  data(cachexia)
  data.value = get_data_value(cachexia, "Creatine", "PIF_178", 
	       by.index = FALSE)

Run the code above in your browser using DataLab