decimate(x, by=10, to, filter, debug=getOption("oceDebug"))
oce
object containing a data
element.x
that are selected.
If it is two numbers (a condition only applicabile if x
is an
echosound
by
.data
slot of
x
, before decimation is done. If not supplied, then the decimation
is done strictly by sub-sampling.class
"oce"
that has been
subsampled appropriately.echosounder
,
for which the decmation is done after applying a running median filter and
then a boxcar filter, each of length equal to the corresponding component
of by
.ctdDecimate
will be retired in favour of this, a more
general, function. The filtering is done with the
filter
function of the stats package.makeFilter
. (Note that ctdDecimate
will be
retired when the present function gains equivalent functionality.)library(oce)
data(adp)
plot(adp)
adp.dec <- decimate(adp,by=2,filter=c(1/4,1/2,1/4))
plot(adp.dec)
Run the code above in your browser using DataLab