| detDive-internal | R Documentation | 
Identify dives in TDR records based on a dive threshold.
.detDive(zdepth, act, dive.thr)
zdepth | 
 numeric vector of zero-offset corrected depths.  | 
act | 
 factor as long as   | 
dive.thr | 
 numeric scalar: threshold depth below which an underwater phase should be considered a dive.  | 
A data.frame with the following elements for
.detDive
dive.id | 
 Numeric vector numbering each dive in the record.  | 
dive.activity | 
 Factor with levels “L”, “W”,
“U”, “D”, and “Z”, see   | 
postdive.id | 
 Numeric vector numbering each postdive interval with the same value as the preceding dive.  | 
Sebastian P. Luque spluque@gmail.com
.detPhase, .zoc
## Too long for checks
## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
               ask=FALSE, echo=FALSE, run.donttest=TRUE)
dcalib		# the 'TDRcalibrate' that was created
tdr <- getTDR(dcalib)
## Extract the gross activity from an already calibrated TDR object
gross.act <- getGAct(dcalib)
detd <- diveMove:::.detDive(getDepth(tdr), gross.act[[2]], 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.