Skip to contents

This function is somewhat analogous to subset.data.frame().

Usage

# S4 method for class 'xbt'
subset(x, subset, ...)

Arguments

x

an xbt object.

subset

a condition to be applied to the data portion of x. See “Details”.

...

ignored.

Value

A new xbt object.

Author

Dan Kelley

Examples

library(oce)
data(xbt)
plot(xbt)

plot(subset(xbt, depth < mean(range(xbt[["depth"]]))))