Last chance! 50% off unlimited learning
Sale ends in
times.dive(d)
times.dive(d) <- value
"dive"
).times.dive
returns a numeric vector containing the elapsed
times at each waypoint, in minutes.
"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
elapsed time at each waypoint is returned by times.dive
. The
assignment times.dive(d) <- value
alters these elapsed times,
provided the new vector value
has the same length as the old one.
depths.dive
,
durations.dive
,
dive
.
d <- dive(c(30,20), c(5,5))
d
times.dive(d)
# stretch time by 10 percent
times.dive(d) <- 1.1 * times.dive(d)
d
Run the code above in your browser using DataLab