| subset,adp-method | R Documentation |
Subset an adp (acoustic Doppler profile) object, in a manner that is function
is somewhat analogous to subset.data.frame().
## S4 method for signature 'adp'
subset(x, subset, ...)
x |
an adp object. |
subset |
A condition to be applied to the |
... |
Ignored. |
For any data type,
subsetting can be by time, ensembleNumber, or distance.
These may not be combined, but it is easy to use a string of calls to
carry out combined operations, e.g.
subset(subset(adp,distance<d0), time<t0)
An adp object.
Dan Kelley
Other things related to adp data:
[[,adp-method,
[[<-,adp-method,
ad2cpCodeToName(),
ad2cpHeaderValue(),
adp,
adp-class,
adpAd2cpFileTrim(),
adpConvertRawToNumeric(),
adpEnsembleAverage(),
adpFlagPastBoundary(),
adpRdiFileTrim(),
adp_rdi.000,
applyMagneticDeclination,adp-method,
as.adp(),
beamName(),
beamToXyz(),
beamToXyzAdp(),
beamToXyzAdpAD2CP(),
beamToXyzAdv(),
beamUnspreadAdp(),
binmapAdp(),
enuToOther(),
enuToOtherAdp(),
handleFlags,adp-method,
is.ad2cp(),
plot,adp-method,
read.adp(),
read.adp.ad2cp(),
read.adp.nortek(),
read.adp.rdi(),
read.adp.sontek(),
read.adp.sontek.serial(),
read.aquadopp(),
read.aquadoppHR(),
read.aquadoppProfiler(),
rotateAboutZ(),
setFlags,adp-method,
subtractBottomVelocity(),
summary,adp-method,
toEnu(),
toEnuAdp(),
velocityStatistics(),
xyzToEnu(),
xyzToEnuAdp(),
xyzToEnuAdpAD2CP()
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,
subset,xbt-method
library(oce)
data(adp)
# 1. Look at first part of time series, organized by time
earlyTime <- subset(adp, time < mean(range(adp[["time"]])))
plot(earlyTime)
# 2. Look at first ten ensembles (AKA profiles)
en <- adp[["ensembleNumber"]]
firstTen <- subset(adp, ensembleNumber < en[11])
plot(firstTen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.