Learn R Programming

specmine (version 3.1.6)

indexes_to_xvalue_interval: Get the x-values of a vector of indexes

Description

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

Usage

indexes_to_xvalue_interval(dataset, indexes)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

indexes

numeric vector containing the indexes.

Value

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

Examples

Run this code
# NOT RUN {
  ## Example of getting the interval of x-values from indexes
  library(specmine.datasets)
  data(propolis)
  xvalue.interval = indexes_to_xvalue_interval(propolis, c(10,50))
# }

Run the code above in your browser using DataLab