Learn R Programming

spftir (version 0.1.0)

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

Description

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

Usage

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.

Examples

Run this code
data(spData)
# Convert data frame to matrix
spectra <- as.matrix(t(spData))
# Removed spectra
rem <- sprem(spectra=spectra, n=1)

Run the code above in your browser using DataLab