Skip to contents

This function is somewhat analogous to subset.data.frame(). Subsetting can be by time or distance, but these may not be combined; use a sequence of calls to subset by both.

Usage

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

Arguments

x

a topo object.

subset

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

...

Ignored.

Value

A new topo object.

Author

Dan Kelley

Examples

# northern hemisphere
library(oce)
data(topoWorld)
plot(subset(topoWorld, latitude > 0))