spint: Interpolation for Intermediate Values of a Matrix of...

Description Usage Arguments Value Author(s) Examples

Description

Allow the interpolation of intermediate values of a matrix of mid-infrared spectra.

Usage

1
spint(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 interpolated values between two variables. Defaults to 1.

Value

A matrix spectra with interpolated 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))
# Interpolated spectra
int <- spint(spectra=spectra, n=1)

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

Related to spint in spftir...