spoffs: Offset Correction of a Matrix of Mid-infrared Spectra

Description Usage Arguments Value Author(s) Examples

Description

Allows the removal of the background of a matrix of mid-infrared spectra.

Usage

1
spoffs(spectra)

Arguments

spectra

matrix. The matrix of FTIR spectra. The first row corresponds to wavenumber; the remaining rows corresponds to absorbances.

Value

A matrix spectra with with background values deleted. The first row corresponds to wavenumber; the remaining rows corresponds to absorbances.

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
spectra <- as.matrix(t(spData))
# Offset correction
offs <- spoffs(spectra=spectra)

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

Related to spoffs in spftir...