50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

oce (version 0.9-14)

subset.ctd: Subset a ctd object

Description

Subset a ctd object

Usage

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

Arguments

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

Value

  • A new ctd object.

Details

This function is somewhat analogous to subset.data.frame, but only one independent variable may be used in subset in any call to the function, which means that repeated calls will be necessary to, subset based on more than one independent variable (e.g. time and distance).

Examples

Run this code
library(oce)
data(ctd)
plot(ctd)
plot(subset(ctd, pressure<10))

Run the code above in your browser using DataLab