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.