Description Usage Arguments Value Examples
Get a data value given the x-axis labels and the sample
1 | get_data_value(dataset, x.axis.val, sample, by.index = FALSE)
|
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. |
Returns a numeric with the data point value.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.