Description Usage Arguments Value Author(s) See Also Examples
The basic procedure is to compare x[n + 1]  x[n] for successive values of
n. When this value jumps, there is a gap which is flagged. beg.indx
and end.indx
will always be contiguous as indices must be; it is the
x
values that jump or have the gap. The indices are provided as they
are more convenient in some programming contexts. If not assigned, the
result appears at the console.
1  check4Gaps(x, y = NULL, silent = FALSE, tol = NULL, ...)

x 
A numeric vector to be checked for gaps. 
y 
An optional vector of 
silent 
Logical indicating a "no gap" message
should not be reported to the console. Important because

tol 
A number indicating the tolerance for checking to see if the step
between successive 
... 
Other parameters to be passed to the plot routines if

A data frame giving the data chunks found, with one chunk per row. Also a plot if y is provided. In the event there are no gaps found, a data frame with one row is returned. The data frame has columns as follows:
beg.freq 
The first frequency value in a given data chunk. 
end.freq 
The last frequency value in a given data chunk. 
size 
The length (in frequency units) of the data chunk. 
beg.indx 
The index of the first frequency value in the data chunk. 
end.indx 
The index of the last frequency value in the data chunk. 
Bryan A. Hanson (DePauw University)
sumSpectra
which make extensive use of this function.
1 2 3 4 5 6 7 8 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.