Learn R Programming

spftir (version 0.1.0)

spnorm01: Normalizes the Absorbance Between 0 and 1 of a Matrix of Mid-infrared Spectra

Description

Allows the normalization of the absorbance values between 0 and 1 of a matrix of mid-infrared spectra.

Usage

spnorm01(spectra)

Arguments

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

Value

A matrix spectra normalized between 0 and 1. 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))
# Normalized spectra between 0 and 1
norm <- spnorm01(spectra=spectra)

Run the code above in your browser using DataLab