Subset a Rsk Object

Description

Subset a rsk object. This function is somewhat analogous to subset.data.frame, but subsetting is only permitted by time.

Usage

1
2
## S4 method for signature 'rsk'
subset(x, subset, ...)

Arguments

x

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

subset

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

...

ignored.

Value

A new rsk object.

Author(s)

Dan Kelley

See Also

Other things related to rsk data: [[,rsk-method, [[<-,rsk-method, as.rsk, plot,rsk-method, read.rsk, rsk-class, rskPatm, rskToc, rsk, summary,rsk-method

Examples

1
2
3
4
library(oce)
data(rsk)
plot(rsk)
plot(subset(rsk, time < mean(range(rsk[['time']]))))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.