staRdom (version 1.0.8)

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

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

Value

numeric exponential slope coefficient

See Also

drm

Examples

Run this code
# NOT RUN {
data(abs_data)
abs_fit_slope(abs_data$wavelength,abs_data$sample1,lim=c(350,400),l_ref=350)
# }

Run the code above in your browser using DataLab