sptrun: Truncation of a Region of a Mid-Infrared Spectral Matrix

Description Usage Arguments Value Author(s) Examples

Description

Allow to trim a region of the spectra defined between two wavenumbers.

Usage

1
sptrun(spectra, limInf, limSup)

Arguments

spectra

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

limInf

numeric. Upper wavenumber limit of the spectral region.

limSup

numeric. Lower wavenumber limit of the spectral region.

Value

A truncated matrix within two wavenumber limits. 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))
# Truncated
trn <- sptrun(spectra=spectra, limInf=800, limSup=2000)

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

Related to sptrun in spftir...