integrate_wl: Integrate over wavelengths

Description Usage Arguments Value Examples

View source: R/integrate.R

Description

Integrate over named wavelength ranges of a hyperSpec object.

Usage

1

Arguments

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).

Value

a hyperspec object with integrated spc

Examples

1
2
3
4
## Not run: 
integrate_wl(chondro, integral_a = 930 ~ 940, integral_b = 1230 ~ 1260)

## End(Not run)

konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.