diveStats {diveMove} | R Documentation |
Calculate dive statistics in TDR records.
diveStats(x) getDive(x, interval, vel=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 . |
vel |
logical; should velocity 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 chron object, specifying the start time of each dive. |
enddesc |
chron object, as begdesc indicating descent's
end time. |
begasc |
chron 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 velocity. |
desc.mean.vel |
numeric vector with descent mean velocity. |
desc.angle |
numeric vector with descent angle. |
bott.tdist |
numeric vector with bottom total distance, estimated from velocity. |
bott.mean.vel |
numeric vector with bottom mean velocity. |
asc.tdist |
numeric vector with ascent total distance, estimated from velocity. |
asc.mean.vel |
numeric vector with ascent mean velocity. |
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 velocity. |
postdive.mean.vel |
numeric vector with postdive mean velocity. |
The number of columns depends on the value of vel.
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