area_under_band: Measure the area under band of spectra

View source: R/area_under_band.R

area_under_bandR Documentation

Measure the area under band of spectra

Description

Area under the band calculations are useful for quantifying spectral features. Specialized fields in spectroscopy have different area under the band regions of interest and their ratios that help with understanding differences in materials. Additional processing is typically required prior to calculating these values for accuracy and reproducibility.

Usage

area_under_band(x, ...)

## Default S3 method:
area_under_band(x, ...)

## S3 method for class 'OpenSpecy'
area_under_band(x, min, max, na.rm = F, ...)

Arguments

x

an OpenSpecy object.

min

a numeric value of the smallest wavenumber to begin calculation.

max

a numeric value of the smallest wavenumber to begin calculation.

na.rm

a logical value for whether to ignore NA values.

...

additional arguments passed to vapply.

Value

Numeric vector of area under the band calculations for each spectrum in the Open Specy object.

Author(s)

Win Cowger

Examples

data("raman_hdpe")
#Single area calculation
area_under_band(raman_hdpe, min = 1000,max = 2000)
#Ratio of two areas. 
area_under_band(raman_hdpe, min = 1000,max = 2000)/area_under_band(raman_hdpe, min = 500,max = 700)

wincowgerDEV/OpenSpecy documentation built on June 14, 2025, 5:57 a.m.