diveStats {diveMove} | R Documentation |
Calculate dive statistics in TDR records.
diveStats(x) getDive(x, interval, speed=FALSE) stampDive(x, ignoreZ=TRUE)
x |
a TDRcalibrate-class object for
diveStats and stampDive . a data frame containing a
single dive's data. |
interval |
sampling interval for interpreting x . |
speed |
logical; should speed statistics be calculated? |
ignoreZ |
logical indicating whether trips should be numbered considering all aquatic activities (“W” and “Z”) or ignoring “Z” activities. |
diveStats
calculates various dive statistics based on
time and depth for an entire TDR record. getDive
obtains these
statistics from a single dive, and stampDive
stamps each dive
with associated trip information.
A data.frame
with one row per dive detected
(durations are in s, and linear variables in m):
begdesc |
A POSIXct object, specifying the start time of
each dive. |
enddesc |
A POSIXct object, as begdesc indicating
descent's end time. |
begasc |
A POSIXct object, as begdesc indicating
the time ascent began. |
desctim |
descent duration of each dive. |
botttim |
bottom duration of each dive. |
asctim |
ascent duration of each dive. |
descdist |
numeric vector with descent depth. |
bottdist |
numeric vector with the sum of absolute depth differences while at the bottom of each dive; measure of amount of “wiggling” while at bottom. |
ascdist |
numeric vector with ascent depth. |
desc.tdist |
numeric vector with descent total distance, estimated from speed. |
desc.mean.speed |
numeric vector with descent mean speed. |
desc.angle |
numeric vector with descent angle. |
bott.tdist |
numeric vector with bottom total distance, estimated from speed. |
bott.mean.speed |
numeric vector with bottom mean speed. |
asc.tdist |
numeric vector with ascent total distance, estimated from speed. |
asc.mean.speed |
numeric vector with ascent mean speed. |
asc.angle |
numeric vector with ascent angle. |
divetim |
dive duration. |
maxdep |
numeric vector with maximum depth. |
postdive.dur |
postdive duration. |
postdive.tdist |
numeric vector with postdive total distance, estimated from speed. |
postdive.mean.speed |
numeric vector with postdive mean speed. |
The number of columns depends on the value of speed.
stampDive
returns a data.frame with trip number, trip type, and
start and end times for each dive.
Sebastian P. Luque spluque@gmail.com
detPhase
, zoc
,
TDRcalibrate-class