Learn R Programming

oce (version 0.9-20)

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

"subset"(x, subset, ...)

Arguments

x
A ctd object, i.e. one inheriting from ctd-class.
subset
An expression indicating how to subset x.
...
Ignored.

Value

A ctd object.

See Also

Other things related to ctd data: [[,ctd-method, [[<-,ctd-method, as.ctd, cnvName2oceName, ctd-class, ctdDecimate, ctdFindProfiles, ctdRaw, ctdTrim, ctd, handleFlags,ctd-method, plot,ctd-method, plotProfile, plotScan, plotTS, read.ctd.itp, read.ctd.odf, read.ctd.sbe, read.ctd.woce.other, read.ctd.woce, read.ctd, summary,ctd-method, woceNames2oceNames, write.ctd

Examples

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

Run the code above in your browser using DataLab