Description Usage Arguments Value Author(s) See Also Examples
Identify dives in TDR records based on a dive threshold.
1 | .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
1 2 3 4 5 6 7 8 9 10 | ## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
ask=FALSE, echo=FALSE)
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.