decimate(x, by = 10, to, filter, debug = getOption("oceDebug"))
an oce object.
an indication of the subsampling. If this is a single number,
then it indicates the spacing between elements of
x that are
selected. If it is two numbers (a condition only applicable if
echosounder object, at present), then the first number indicates
the time spacing and the second indicates the depth spacing.
Indices at which to subsample. If given, this over-rides
optional list of numbers representing a digital filter to be
applied to each variable in the
data slot of
decimation is done. If not supplied, then the decimation is done strictly by
a flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more.
An oce object that has been subsampled appropriately.
Only a preliminary version of this function is provided in
the present package. It only works for objects of class
for which the decimation is done after applying a running median filter and
then a boxcar filter, each of length equal to the corresponding component of