chkSpectra | R Documentation |
Utility function to verify that the structure of a Spectra
or Spectra2D
object is internally consistent.
This function should be used after manual editing of these objects.
However, in most cases rather than
directly editing these objects, one should modify them via:
removeFreq
removeSample
removeGroup
chkSpectra(spectra, confirm = FALSE)
spectra |
An object of S3 class |
confirm |
Logical indicating whether or not to write the results to the console, as would be desirable for interactive use. |
None. When used at the console, and the object is OK, no message is
written unless confirm = TRUE
. At the console, if there is a
problem, messages are issued regardless of the value of confirm
.
Bryan A. Hanson (DePauw University).
if (checkForPackageWithVersion("ChemoSpec", 6.0)) {
library("ChemoSpec")
data(SrE.IR)
chkSpectra(SrE.IR)
}
if (checkForPackageWithVersion("ChemoSpec2D", 0.5)) {
library("ChemoSpec2D")
data(MUD1)
chkSpectra(MUD1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.