detPhase(time, depth, dry.thr, wet.thr, ...)
rleActivity(time, act, interval)POSIXct object with date and time for all depths.time.detPhase and the rest by rleActivity:POSIXct object as long as the number of unique
activity phases identified, indicating the start times for each
activity phase.POSIXct object as long as the number of unique
activity phases identified, indicating the end times for each
activity phase.act in phases.time.br.POSIXct object; beginning time for each phase.POSIXct object; ending time for each phase.detPhase first creates a factor with value depth and value dry.thr, then the values in the factor for that phase
are changed to wet.thr, then the corresponding value for the factor is
changed to rleActivity takes a factor indicating different activity
phases, their associated time, and the sampling interval to return a
factor uniquely identifying each phase of activity, i.e. labelling
them. In addition, it returns the duration of each phase, and their
beginning and end times.
detDive