Learn R Programming

oce (version 0.9-18)

subset.echosounder: Subset an echosounder object

Description

Subset an echosounder object

Usage

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

Arguments

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

Value

  • A new echosounder object.

Details

This function is somewhat analogous to subset.data.frame. Subsetting can be by time or depth, but these may not be combined; use a sequence of calls to subset by both.

Examples

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

Run the code above in your browser using DataLab