Get x-values indexes

Share:

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
  ## Example of getting the indexes of the x-values 
  data(propolis)
  indexes = x_values_to_indexes(propolis, c(1.3, 3.51, 6.03))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.