Learn R Programming

diveMove (version 0.6-8)

TDR-class: Classes "TDR" and "TDRspeed" for representing TDR information

Description

These classes store information gathered by time-depth recorders.

Usage

## S3 method for class 'TDR,numeric,numeric':
extractDive(obj, diveNo, id)

## S3 method for class 'TDRspeed,missing': plot(x, concurVars=NULL, concurVarTitles, ...)

Arguments

obj, x
"TDR" and "TDR" objects, respectively.
diveNo
numeric vector or scalar with dive numbers to extract.
id
numeric vector of dive numbers from where diveNo should be chosen.
concurVars, concurVarTitles, ...
arguments passed to plotDive. In this TDRspeed method, concurVars is a matrix with variables to plot, in addition to speed. concurVarTitles in this case is a character vector with axis labels for speed and the additi

Objects from the Class

Objects can be created by calls of the form new("TDR", ...) and new("TDRspeed", ...).

TDR objects contain concurrent time and depth readings, as well as a string indicating the file the data originates from, and a number indicating the sampling interval for these data. TDRspeed extends TDR objects containing additional concurrent speed readings.

Details

Since the data to store in objects of these clases usually come from a file, the easiest way to construct such objects is with the function readTDR to retrieve all the necessary information. The methods listed above can thus be used to access all slots.

See Also

readTDR, TDRcalibrate-class.