Description Usage Arguments Value Examples
Gets the values of all samples in the dataset given a set of x axis names or indexes.
1 | get_data_values(dataset, x.axis.val, by.index = FALSE)
|
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. |
Returns a matrix with the values of all samples in the specified x axis.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.