Learn R Programming

oce (version 1.1-1)

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. For any data type, subsetting can be by time or distance, but these may not be combined; use a sequence of calls to subset by both. For the special case of AD2CP data (see read.adp.ad2cp), it is possible to subset to the "average" data records with subset="average", to the "burst" records with subset="burst", or to the "interleavedBurst" with subset="interleavedBurst"; note that no warning is issued, if this leaves an object with no useful data.

Usage

# S4 method for adp
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, ad2cpHeaderValue, adp-class, adpEnsembleAverage, adp, as.adp, beamName, beamToXyzAdpAD2CP, beamToXyzAdp, beamToXyzAdv, beamToXyz, beamUnspreadAdp, binmapAdp, enuToOtherAdp, enuToOther, handleFlags,adp-method, is.ad2cp, plot,adp-method, read.adp.ad2cp, read.adp.nortek, read.adp.rdi, read.adp.sontek.serial, read.adp.sontek, read.adp, read.aquadoppHR, read.aquadoppProfiler, read.aquadopp, rotateAboutZ, setFlags,adp-method, summary,adp-method, toEnuAdp, toEnu, velocityStatistics, xyzToEnuAdpAD2CP, xyzToEnuAdp, xyzToEnu

Other functions that subset oce objects: subset,adv-method, subset,amsr-method, subset,argo-method, subset,cm-method, subset,coastline-method, subset,ctd-method, subset,echosounder-method, subset,lobo-method, subset,met-method, subset,oce-method, subset,odf-method, subset,rsk-method, subset,sealevel-method, subset,section-method, subset,topo-method

Examples

Run this code
# NOT RUN {
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