Learn R Programming

oce (version 0.9-17)

subset.oce: Subset an oce object

Description

Subset an oce object

Usage

## S3 method for class 'oce}(x, subset, \dots)':
subsetundefined

x{a oce object.}

subset{logical expression that is expressed in terms of the data slot of x. All elements of data are indexed by the result of the expression. See Examples.}

...{ignored.}

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

library(oce) data(ctd) # Select just the top 10 metres (pressure less than 10 dbar) top10 <- subset(ctd, pressure < 10) par(mfrow=c(1, 2)) plotProfile(ctd) plotProfile(top10)

A new oce object.

[object Object]

misc

Arguments