depths.dive | R Documentation |
Extracts, or alters, the depth at each waypoint during a dive.
depths.dive(d) depths.dive(d) <- value
d |
A dive (object of class |
value |
A numeric vector containing depths in metres. |
An object of class "dive"
represents a scuba dive profile. It is
created by the function dive
. A dive is defined as a
series of waypoints occurring at specified depths and times. The
depth at each waypoint is returned by depths.dive
. The
assignment depths.dive(d) <- value
alters these depths,
provided the new vector value
has the same length as the old one.
depths.dive
returns a numeric vector containing the
depths at each waypoint, in metres.
.
times.dive
,
durations.dive
,
dive
.
d <- dive(c(30,20), c(5,5)) d depths.dive(d) # what if we had dived to 35 metres? depths.dive(d)[2:3] <- 35 d
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.