Calculate spectral derivative
get.spectral.derivative.RdThis function calculates spectral derivatives using either finite approximation or the Savitzky-Golay filter method.
Arguments
- df
A DataFrame containing spectral data. Columns represent wavelengths and spectral values.
- m
The order of the derivative. Default is 1.
- method
The method to use for derivative calculation. Options are "finApprox" for finite approximation or "sgolay" for Savitzky-Golay filter. Default is "sgolay".
- get.plot
a boolena TRUE or FALSE; if TRUE a plot will be done