spmbl: Linear Baseline Correction of a Mid-infrared Spectrum

Description Usage Arguments Value Author(s) Examples

Description

This function allows a linear correction of defects of the baseline of a mid-infrared spectrum.

Usage

1

Arguments

spectrum

matrix. The matrix of FTIR spectrum. The first row corresponds to wavenumber; the second row corresponds to absorbance.

lbl

vector. Vector of zero points of absorbance (two or more points).

Value

A corrected spectrum matrix by means of a linear baseline. The first row corresponds to wavenumber; the second row corresponds to absorbance.

Author(s)

Claudio Pozo Valenzuela [aut, cre] and Saddys Rodriguez-llamazares [aut]

Examples

1
2
3
4
5
data(spData)
# Convert data frame to matrix
spectrum <- as.matrix(t(spData[, c("Wavenumber","A")]))
# Linear baseline correction
mbl <- spmbl(spectrum=spectrum, lbl=c(1800, 1540, 840))

Example output

Loading required package: pracma

spftir documentation built on May 2, 2019, 2:08 a.m.

Related to spmbl in spftir...