Skip to contents

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.

Usage

# S4 method for class '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.

Author

Dan Kelley

Examples

library(oce)
data(adv)
plot(adv)

plot(subset(adv, time < mean(range(adv[["time"]]))))