Learn R Programming

oce (version 0.9-14)

subset.tdr: Subset a tdr object

Description

Subset a tdr (temperature-depth recorder) object

Usage

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

Arguments

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

Value

  • A new tdr object.

Details

This function is somewhat analogous to subset.data.frame, but subsetting is only permitted by time.

Examples

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

Run the code above in your browser using DataLab