decimate {oce}R Documentation

Decimate an oce object

Description

Decimate, or subsample, an oce object.

Usage

decimate(x, by=10, method=c("direct", "filter"), filter)

Arguments

x an oce object containing a data element.
by an indication of the subsampling. The first element is selected, then the 1+by element, etc.
method only one is provided at the moment: direct, which indicates straight decimate, or subsampling.
filter a list of numbers representing a digital filter to be applied to each variable in x$data before decimation is done. This must be supplied if method="filter".

Details

Later on, other methods will be added, and ctd.decimate will be retired in favour of this, a more general, function. The filtering is done with the filter function of the stats package.

Value

An object of class "oce" that has been subsampled appropriately.

Author(s)

Dan Kelley

See Also

Filter coefficients may be calculated using make.filter. (Note that ctd.decimate will be retired when the present function gains equivalent functionality.)

Examples

library(oce)
data(ctd)
d <- decimate(ctd, by=5)
plot(d)

[Package oce version 0.1-80 Index]