Learn R Programming

oce (version 0.9-18)

subset.cm: Subset a cm object

Description

Subset a cm (current meter) object

Usage

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

Arguments

x
a cm object.
subset
a condition to be applied to the data portion of x. See Details.
...
ignored.

Value

  • A new cm object.

Details

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

Examples

Run this code
library(oce)
data(cm)
plot(cm)
plot(subset(cm, time < mean(range(cm[['time']]))))

Run the code above in your browser using DataLab