View source: R/spectralCalculationsNick.R
calculateRABD | R Documentation |
Calculate Relative Absorption Band Depth (RABD)
calculateRABD( normData, normWavelengths, tol = 5, trough = 665, edges = c(590, 730), trough.agg.fun = "min" )
normData |
Normalized spectral data (the output of 'specimR::calculateMeanRows()') |
normWavelengths |
A vector of wavelengths (the output of 'specimR::calculateMeanRows()') |
tol |
Tolerance for distance from the requested wavelength. If no values are present within the tolerance, this returns an error. If multiple are present, this returns the average of those values. |
trough |
the wavelength for the RABD trough (default = 660) |
edges |
the edges (as a 2-element vector) of the RABD trough (default = c(590,730)) |
a depth series of the RABD index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.