oce (version 1.1-1)

subset,cm-method: Subset a CM Object

Description

This function is somewhat analogous to subset.data.frame.

Usage

# S4 method for cm
subset(x, subset, ...)

Arguments

x

a cm object, i.e. inheriting from cm-class.

subset

a condition to be applied to the data portion of x. See ‘Details’.

...

ignored.

Value

A new cm object.

See Also

Other things related to cm data: [[,cm-method, [[<-,cm-method, as.cm, cm-class, cm, plot,cm-method, read.cm, rotateAboutZ, summary,cm-method

Other functions that subset oce objects: subset,adp-method, subset,adv-method, subset,amsr-method, subset,argo-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(cm)
plot(cm)
plot(subset(cm, time < mean(range(cm[['time']]))))

# }

Run the code above in your browser using DataLab