durations.dive | R Documentation |
Extracts, or alters, the durations of each interval between waypoints during a dive.
durations.dive(d) durations.dive(d) <- value
d |
A dive (object of class |
value |
A numeric vector containing durations in minutes. |
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.
durations.dive
returns a numeric vector containing the
durations of intervals between each waypoint, in minutes.
.
depths.dive
,
times.dive
,
dive
.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.