calculateRABD: Calculate Relative Absorption Band Depth (RABD)

View source: R/spectralCalculationsNick.R

calculateRABDR Documentation

Calculate Relative Absorption Band Depth (RABD)

Description

Calculate Relative Absorption Band Depth (RABD)

Usage

calculateRABD(
  normData,
  normWavelengths,
  tol = 5,
  trough = 665,
  edges = c(590, 730),
  trough.agg.fun = "min"
)

Arguments

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

Value

a depth series of the RABD index


nickmckay/specimR documentation built on July 6, 2022, 8:09 p.m.