Learn R Programming

diveMove (version 1.3.1)

timeBudget-methods: Describe the Time Budget of Major Activities from "TDRcalibrate" object.

Description

Summarize the major activities recognized into a time budget.

Usage

## S3 method for class 'TDRcalibrate,logical':
timeBudget(obj, ignoreZ)

Arguments

obj
TDRcalibrate object.
ignoreZ
logical: whether to ignore trivial aquatic periods.

Value

  • A data frame with components:
  • phasenoA numeric vector numbering each period of activity.
  • activityA factor labelling the period with the corresponding activity.
  • beg, endPOSIXct objects indicating the beginning and end of each period.

Details

Ignored trivial aquatic periods are collapsed into the enclosing dry period.

See Also

calibrateDepth

Examples

Run this code
## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
               ask=FALSE, echo=FALSE)
dcalib		# the 'TDRcalibrate' that was created

timeBudget(dcalib, TRUE)

Run the code above in your browser using DataLab