
This function is somewhat analogous to subset.data.frame()
.
# S4 method for xbt
subset(x, subset, ...)
a condition to be applied to the data
portion of x
.
See ‘Details’.
ignored.
A new xbt
object.
Other things related to xbt data:
[[,xbt-method
,
[[<-,xbt-method
,
as.xbt()
,
plot,xbt-method
,
read.xbt.noaa1()
,
read.xbt()
,
summary,xbt-method
,
xbt-class
,
xbt.edf
,
xbt
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,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
# NOT RUN {
library(oce)
data(xbt)
plot(xbt)
plot(subset(xbt, depth < mean(range(xbt[["depth"]]))))
# }
Run the code above in your browser using DataLab