Learn R Programming

oce (version 0.9-18)

subset.rsk: Subset a rsk object

Description

Subset a rsk object

Usage

## S3 method for class 'rsk':
subset(x, subset, \dots)

Arguments

x
a rsk object.
subset
a condition to be applied to the data portion of x. See Details.
...
ignored.

Value

  • A new rsk object.

Details

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

Examples

Run this code
library(oce)
data(rsk)
plot(rsk)
plot(subset(rsk, time < mean(range(rsk[['time']]))))

Run the code above in your browser using DataLab