staRdom (version 1.1.28)

abs_fit_slope: Fit absorbance data to exponential curve. drm is used for the fitting process.

Description

Fit absorbance data to exponential curve. drm is used for the fitting process.

Usage

abs_fit_slope(
  wl,
  abs,
  lim,
  l_ref = 350,
  control = drmc(errorm = FALSE, noMessage = TRUE),
  ...
)

Value

numeric exponential slope coefficient

Arguments

wl

vector containing wavelengths

abs

vector containing absorption in m^-1

lim

vector containing lower and upper limits for wavelengths to use

l_ref

numerical. reference wavelength, default is 350, if set to NA l_ref is fitted

control

control parameters for drm, see drmc

...

parameters that are passed on to drm

See Also

drm

Examples

Run this code
data(absorbance)
abs_fit_slope(absorbance$wavelength,absorbance$sample1,lim=c(350,400),l_ref=350)

Run the code above in your browser using DataLab