x_values_to_indexes: Get x-values indexes

Description Usage Arguments Value Examples

Description

Returns the indexes corresponding to a vector of x-values (only to numerical values - spectra)

Usage

1
x_values_to_indexes(dataset, x.values)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

x.values

vector of x-values.

Value

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

Examples

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))

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