Learn R Programming

oce (version 0.9-18)

subset.topo: Subset a topo object

Description

Subset a topo (topography) object

Usage

## S3 method for class 'topo':
subset(x, subset, \dots)

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.

Details

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.

Examples

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

Run the code above in your browser using DataLab