Learn R Programming

oce (version 0.9-18)

subset,ctd-method: Subset a CTD object

Description

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).

Usage

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

Arguments

x
An object inheriting from ctd-class.
subset
An expression indicating how to subset x.
...
Ignored.

Value

  • A ctd object.

Examples

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

Run the code above in your browser using DataLab