detPhase(time, depth, landerr, seaerr, ...)
getAct(time, act, interval)POSIXct object with date and time for all depths.time.detPhase and the rest by getAct: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 landerr, then the values in the
factor for that phase are changed to seaerr, then the
corresponding value for the factor is changed to getAct 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