Learn R Programming

oce (version 0.9-18)

subset.adv: Subset an adv object

Description

Subset an adv (acoustic Doppler profile) object

Usage

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

Arguments

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

Value

  • A new adv 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(adv)
plot(adv)
plot(subset(adv, time < mean(range(adv[['time']]))))

Run the code above in your browser using DataLab