
Calculate dive statistics in TDR records.
diveStats(x, depth.deriv=TRUE)
oneDiveStats(x, interval, speed=FALSE)
stampDive(x, ignoreZ=TRUE)
A TDRcalibrate-class
object for
diveStats
and stampDive
, and a
data.frame
containing a single dive's data (a factor
identifying the dive phases, a POSIXct object with the time for each
reading, a numeric depth vector, and a numeric speed vector) for
oneDiveStats
.
logical: should depth derivative statistics be calculated?
numeric scalar: sampling interval for interpreting
x
.
logical: should speed statistics be calculated?
logical: whether phases should be numbered considering all aquatic activities (“W” and “Z”) or ignoring “Z” activities.
A data.frame
with one row per dive detected
(durations are in s, and linear variables in m):
A POSIXct
object, specifying the start time of
each dive.
A POSIXct
object, as begdesc
indicating
descent's end time.
A POSIXct
object, as begdesc
indicating
the time ascent began.
Descent duration of each dive.
Bottom duration of each dive.
Ascent duration of each dive.
Dive duration.
Numeric vector with last descent depth.
Numeric vector with the sum of absolute depth differences while at the bottom of each dive; measure of amount of “wiggling” while at bottom.
Numeric vector with first ascent depth.
Mean bottom depth.
Median bottom depth.
Standard deviation of bottom depths.
Numeric vector with maximum depth.
Numeric vector with descent total distance, estimated from speed.
Numeric vector with descent mean speed.
Numeric vector with descent angle, from the surface plane.
Numeric vector with bottom total distance, estimated from speed.
Numeric vector with bottom mean speed.
Numeric vector with ascent total distance, estimated from speed.
Numeric vector with ascent mean speed.
Numeric vector with ascent angle, from the bottom plane.
Postdive duration.
Numeric vector with postdive total distance, estimated from speed.
Numeric vector with postdive mean speed.
If depth.deriv=TRUE, 21 additional columns with the minimum, first quartile, median, mean, third quartile, maximum, and standard deviation of the depth derivative for each phase of the dive. The number of columns also depends on argument speed.
stampDive returns a data.frame with phase number, activity, and start and end times for each dive.
diveStats
calculates various dive statistics based on
time and depth for an entire TDR record.
oneDiveStats
obtains these statistics from a single dive, and
stampDive
stamps each dive with associated phase information.
# NOT RUN {
# }
# NOT RUN {
## 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
tdrX <- diveStats(dcalib)
stamps <- stampDive(dcalib, ignoreZ=TRUE)
tdrX.tab <- data.frame(stamps, tdrX)
summary(tdrX.tab)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab