Description Usage Arguments Value Examples
Returns the indexes corresponding to a vector of x-values (only to numerical values - spectra)
1 | x_values_to_indexes(dataset, x.values)
|
dataset |
list representing the dataset from a metabolomics experiment. |
x.values |
vector of x-values. |
Returns a numeric vector with the indexes of the x-values.
1 2 3 4 | ## Example of getting the indexes of the x-values
library(specmine.datasets)
data(propolis)
indexes = x_values_to_indexes(propolis, c(1.3, 3.51, 6.03))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.