Learn R Programming

diveMove (version 0.6-6)

calibrateDepth: Calibrate and build a "TDRcalibrate" object

Description

These functions create a "TDRcalibrate" object which is necessary to obtain dive summary statistics.

Usage

calibrateDepth(x, landerr=70, seaerr=3610, divethres=4, offset)
calibrateSpeed(x, type="all", calType="pooled", bad=c(0, 0),
               z=0, filename=slot(getTDR(x), "file"), coefs, ...)

Arguments

x
an object of class TDR for calibrateDepth, and an object of class TDRcalibrate-class for calibrateSpeed.
landerr, seaerr
arguments to detPhase.
divethres
argument to detDive.
offset
argument to zoc.
type, calType, bad, z, filename
further arguments for .getSpeedCalib and doSpeedCalib.
coefs
known speed calibration coefficients from quantile regression as a vector of length 2 (intercept, slope). If provided, these coefficients are used for calibrating speed, ignoring all other arguments, except x.
...
argument passed to doSpeedCalib.

Value

Details

These functions are really wrappers around functions that are usually called in sequence, so they provided an abbreviated method for running them together during analyses. See the functions in the See Also section for more details.

calibrateDepth performs zero-offset correction of depth, wet/dry phase detection, and detection of dives, as well as proper labelling of the latter.

calibrateSpeed calibrates speed readings.

See Also

detPhase, detDive, doSpeedCalib, zoc, for the underlying functions.