ir_get_spectrum: Extracts selected spectra from an object of class 'ir'

View source: R/ir_get_spectrum.R

ir_get_spectrumR Documentation

Extracts selected spectra from an object of class ir

Description

ir_get_spectrum extracts selected spectra from an object of class ir.

Usage

ir_get_spectrum(x, what)

Arguments

x

An object of class ir.

what

A numeric vector with each element representing a row in x for which to extract the spectrum.

Value

An integer vector with the same length as wavenumber with the row indices of x corresponding to the wavenumber values in wavenumber.

Examples

x <-
   ir::ir_sample_data %>%
   ir::ir_get_spectrum(what = c(5, 9))


ir documentation built on May 2, 2022, 5:06 p.m.