Learn R Programming

oce (version 0.9-18)

subset.lobo: Subset an lobo object

Description

Subset an lobo (acoustic Doppler profile) object

Usage

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

Arguments

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

Value

  • A new lobo object.

Details

This function is somewhat analogous to subset.data.frame, except that subsets can only be specified in terms of time.

Examples

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

Run the code above in your browser using DataLab