xvalue_interval_to_indexes: Get indexes of an interval of x-values

Description Usage Arguments Value Examples

Description

Returns indexes corresponding to an interval of x-values (only to numerical values - spectra)

Usage

1
xvalue_interval_to_indexes(dataset, min.value, max.value)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

min.value

mininum x-value of the interval.

max.value

maximum x-value of the interval.

Value

Returns a numeric vector with the indexes of the x-values interval

Examples

1
2
3
4
  ## 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)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.