Return a subset of a ctd object.
# S4 method for ctd
subset(x, subset, ...)
A ctd object.
a ctd object.
An expression indicating how to subset x
.
optional arguments, of which only the first is examined. The only
possibility is that this argument be named indices
. See “Details”.
Dan Kelley
This function is used to subset data within
a ctd object. There are two ways of working. If
subset
is supplied, then it is a logical expression
that is evaluated within the environment of the data
slot of the object (see Example 1). Alternatively, if the
...
list contains an expression defining indices
,
then that expression is used to subset each item within the
data
slot (see Example 2).
Other things related to ctd data:
CTD_BCD2014666_008_1_DN.ODF.gz
,
[[,ctd-method
,
[[<-,ctd-method
,
as.ctd()
,
cnvName2oceName()
,
ctd-class
,
ctd.cnv.gz
,
ctdDecimate()
,
ctdFindProfilesRBR()
,
ctdFindProfiles()
,
ctdRaw
,
ctdRepair()
,
ctdTrim()
,
ctd_aml.csv.gz
,
ctd
,
d200321-001.ctd.gz
,
d201211_0011.cnv.gz
,
handleFlags,ctd-method
,
initialize,ctd-method
,
initializeFlagScheme,ctd-method
,
oceNames2whpNames()
,
oceUnits2whpUnits()
,
plot,ctd-method
,
plotProfile()
,
plotScan()
,
plotTS()
,
read.ctd.aml()
,
read.ctd.itp()
,
read.ctd.odf()
,
read.ctd.odv()
,
read.ctd.sbe()
,
read.ctd.ssda()
,
read.ctd.woce.other()
,
read.ctd.woce()
,
read.ctd()
,
setFlags,ctd-method
,
summary,ctd-method
,
woceNames2oceNames()
,
woceUnit2oceUnit()
,
write.ctd()
Other functions that subset oce objects:
subset,adp-method
,
subset,adv-method
,
subset,amsr-method
,
subset,argo-method
,
subset,cm-method
,
subset,coastline-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(ctd)
plot(ctd)
# Example 1
plot(subset(ctd, pressure<10))
# Example 2
plot(subset(ctd, indices=1:10))
Run the code above in your browser using DataLab