Learn R Programming

oce (version 0.9-20)

subset,adp-method: Subset an ADP Object

Description

Subset an adp (acoustic Doppler profile) object, in a manner that is function is somewhat analogous to subset.data.frame. Subsetting can be by time or distance, but these may not be combined; use a sequence of calls to subset by both.

Usage

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

Arguments

x
An adp object, i.e. one inheriting from adp-class.
subset
A condition to be applied to the data portion of x. See ‘Details’.
...
Ignored.

Value

A new adp-class object.

See Also

Other things related to adp data: [[,adp-method, [[<-,adp-method, adp-class, adp, as.adp, beamName, beamToXyzAdp, beamToXyzAdv, beamToXyz, beamUnspreadAdp, binmapAdp, enuToOtherAdp, enuToOther, plot,adp-method, read.adp.nortek, read.adp.rdi, read.adp.sontek.serial, read.adp.sontek, read.adp, read.aquadoppHR, read.aquadoppProfiler, read.aquadopp, summary,adp-method, toEnuAdp, toEnu, velocityStatistics, xyzToEnuAdp, xyzToEnu

Examples

Run this code
library(oce)
data(adp)
# First part of time series
plot(subset(adp, time < mean(range(adp[['time']]))))

Run the code above in your browser using DataLab