spnormw: Normalizes the Absorbance of a Matrix of Mid-infrared Spectra...

Description Usage Arguments Value Author(s) Examples

Description

The absorbance values of the matrix of mid-infrared spectra is normalized by a specific band.

Usage

1
spnormw(spectra, wn)

Arguments

spectra

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

wn

numeric. Specific band (wavenumber) used to normalize the spectra.

Value

A matrix spectra normalized by a specific band. 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))
# Normalized spectra by a specific band
normw <- spnormw(spectra=spectra, wn=1510)

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

Related to spnormw in spftir...