powered by
ir
ir_get_spectrum extracts selected spectra from an object of class ir.
ir_get_spectrum
ir_get_spectrum(x, what)
An integer vector with the same length as wavenumber with the row indices of x corresponding to the wavenumber values in wavenumber.
wavenumber
x
An object of class ir.
A numeric vector with each element representing a row in x for which to extract the spectrum.
x <- ir::ir_sample_data |> ir::ir_get_spectrum(what = c(5, 9))
Run the code above in your browser using DataLab