Learn R Programming

ChemoSpec (version 1.51-2)

normSpectra: Normalize a Spectra Object

Description

This function currently has one option for normalization, and that is ti for total intensity. In this case, the y-data of a "Spectra" object is normalized by dividing each y-value by the sum of the y-values in a given spectrum. This each spectrum sums to 1. This method assumes that the total concentration of substances giving peaks does not vary across samples which may not be true.

Usage

normSpectra(spectra, method = "ti")

Arguments

Value

An object of S3 class "Spectra".

References

http://academic.depauw.edu/~hanson/ChemoSpec/ChemoSpec.html

Examples

Run this code
data(CuticleIR)
res <- normSpectra(CuticleIR)
sumSpectra(res)

Run the code above in your browser using DataLab