Learn R Programming

oce (version 0.9-17)

subset.drifter: Subset a drifter object

Description

Subset a drifter object

Usage

## S3 method for class 'drifter}(x, subset, \dots)':
subsetundefined

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

This function is somewhat analogous to subset.data.frame, but only one independent variable may be used in subset in any call to the function, which means that repeated calls will be necessary to, subset based on more than one independent variable. Subsetting may be by time, latitude, longitude, or profile.

A new drifter object.

library(oce) data(drifter) par(mfrow=c(2,2)) plot(drifter) plot(subset(drifter, time > mean(time))) plot(subset(drifter, longitude > mean(longitude))) plot(subset(drifter, latitude > mean(latitude)))

[object Object]

misc

Arguments