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

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

See also

Examples

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