View source: R/area_under_band.R
area_under_band | R Documentation |
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.
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, ...)
x |
an |
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. |
Numeric vector of area under the band calculations for each spectrum in the Open Specy object.
Win Cowger
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.