Subset an adv (acoustic Doppler profile) object. This function is somewhat analogous to subset.data.frame(), except that subsets can only be specified in terms of time.

# S4 method for adv
subset(x, subset, ...)

Arguments

x

an adv object.

subset

a condition to be applied to the data portion of x. See ‘Details’.

...

ignored.

Value

A new adv object.

See also

Examples

library(oce) data(adv) plot(adv)
plot(subset(adv, time < mean(range(adv[['time']]))))