Durations of time between each waypoint of a dive

Description

Extracts, or alters, the durations of each interval between waypoints during a dive.

Usage

1
2

Arguments

d

A dive (object of class "dive").

value

A numeric vector containing durations in minutes.

Details

An object of class "dive" represents a scuba dive. It is created by the function dive. A dive is defined as a series of waypoints occurring at specified depths and times.

The duration of the time interval between each successive pair of waypoints is returned by durations.dive. The assignment durations.dive(d) <- value alters these durations, provided the new vector value has the same length as the old one.

Value

durations.dive returns a numeric vector containing the durations of intervals between each waypoint, in minutes.

Author(s)

Adrian Baddeley Adrian.Baddeley@uwa.edu.au http://www.maths.uwa.edu.au/~adrian/

See Also

depths.dive, times.dive, dive.

Examples

1
2
3
4
5
6
   d <- dive(c(30,20), c(5,5))
   d
   durations.dive(d)
   # what if we stayed at the bottom for 25 minutes instead of 20?
   durations.dive(d)[2] <- 25
   d

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.