detDive-internal {diveMove} | R Documentation |
Identify dives in TDR records based on a dive threshold.
.detDive(zdepth, act, dive.thr=4, ...)
zdepth |
Vector of zero-offset corrected depths. |
act |
Factor as long as depth coding activity, with levels
specified as in .detPhase . |
dive.thr |
Threshold depth below which an underwater phase should be considered a dive. |
... |
The sampling interval in seconds. |
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 .detPhase .
All levels may be represented. |
postdive.id |
Numeric vector numbering each postdive interval with the same value as the preceding dive. |
Sebastian P. Luque spluque@gmail.com