Integrate over named wavelength ranges of a hyperSpec object.
integrate_wl(x, ..., FUN = integrate_trapezoid)
x | a hyperSpec object. |
---|---|
... | (named) selection of wavelength ranges (specify as in subsetting a hyperSpec object by using a tilde). |
FUN | function to be used for integration (trapezoid approximation as default). |
a hyperspec object with integrated spc
if (FALSE) { integrate_wl(chondro, integral_a = 930 ~ 940, integral_b = 1230 ~ 1260) }