This function finds all peaks (local maxima) in a spectrum, using a user
provided size threshold relative to the tallest peak (global maximum) bellow
which found peaks are ignored---i.e., not included in the returned value. This
is a wrapper built on top of function peaks() from package 'splus2R'.
numeric Value between 0.0 and 1.0 indicating the
relative size compared to tallest peak threshold below which peaks will be
ignored. Negative values set a threshold so that the tallest peaks are
ignored, instead of the shortest.
span
integer A peak is defined as an element in a sequence which is
greater than all other elements within a window of width span
centered at that element. Use NULL for the global peak.
strict
logical If TRUE, an element must be strictly greater
than all other values in its window to be considered a peak.
na.rm
logical indicating whether NA values should be stripped
before searching for peaks.
Value
A logical vector of the same length as x. Values that are
TRUE correspond to local peaks in the data.