Learn R Programming

oce (version 0.9-18)

subset.adp: Subset an adp object

Description

Subset an adp (acoustic Doppler profile) object

Usage

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

Arguments

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

Value

  • A new adp object.

Details

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

Examples

Run this code
library(oce)
data(adp)
# First part of time series
plot(subset(adp, time < mean(range(adp[['time']]))))

Run the code above in your browser using DataLab