sprem: Remove Alternate Values of a Matrix of Mid-infrared Spectra

Description Usage Arguments Value Author(s) Examples

Description

Allow to remove alternate values of a matrix of Mid-Infrared Spectra

Usage

1
sprem(spectra, n = 1)

Arguments

spectra

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

n

numeric. Number of removed values between two variables. Defaults to 1.

Value

A matrix spectra with removed values. 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))
# Removed spectra
rem <- sprem(spectra=spectra, n=1)

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

Related to sprem in spftir...