View source: R/ir_get_intensity.R
| ir_get_intensity | R Documentation | 
ir object for specific spectral channelsir_get_intensity extracts intensity values of spectra for specific
user-defined spectral channels ("x axis values", e.g. wavenumber values).
ir_get_intensity(x, wavenumber, warn = TRUE)
| x | An object of class  | 
| wavenumber | A numeric vector with spectral channels ("x axis values", e.g. wavenumber values) for which to extract intensities. | 
| warn | logical value indicating if warnings should be displayed
( | 
x with an additional column intensity.
x$intensity is a list column with each element representing a
data.frame with a row for each element in wavenumber and two
columns:
The "x axis values" extracted with
ir_get_wavenumberindex() applied on wavenumber and the
corresponding spectrum in x.
The extracted intensity values
.
x <-
   ir::ir_sample_data |>
   ir::ir_get_intensity(wavenumber = 1090)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.