Learn R Programming

ChemoSpec (version 3.0-1)

sumSpectra: Summarize a Spectra Object

Description

Provides a summary of a "Spectra" object, essentially a more spectroscopist-friendly version of str().

Usage

sumSpectra(spectra, ...)

Arguments

spectra
An object of S3 class "Spectra".
...
Arguments to be passed downstream.

Value

  • None. Results printed at console, perhaps a plot as well.

Details

Prior to summarizing, chkSpectra is run with confirm = FALSE. If there are problems, warnings are issued to the console and the summary is not done. If sumSpectra thinks there is a gap between every data point, add the argument tol = xx which will pass through to check4Gaps and alleviate this problem (which has to do with rounding when subtracting two adjacent frequency values). The "Spectra" object is checked to see if it contains data elements beyond what is required. If so, these extra elements are reported to the console.

References

https://github.com/bryanhanson/ChemoSpec

Examples

Run this code
data(CuticleIR)
sumSpectra(CuticleIR)

Run the code above in your browser using DataLab