powered by
Returns indexes corresponding to an interval of x-values (only to numerical values - spectra)
xvalue_interval_to_indexes(dataset, min.value, max.value)
list representing the dataset from a metabolomics experiment.
mininum x-value of the interval.
maximum x-value of the interval.
Returns a numeric vector with the indexes of the x-values interval
# NOT RUN { ## Example of getting the indexes of an interval of x-values library(specmine.datasets) data(propolis) indexes.interval = xvalue_interval_to_indexes(propolis, 2.0, 5.5) # }
Run the code above in your browser using DataLab