times.dive: Elapsed times at each waypoint of a dive

View source: R/dive.R

times.diveR Documentation

Elapsed times at each waypoint of a dive

Description

Extracts, or alters, the elapsed time at each waypoint during a dive.

Usage

times.dive(d)
times.dive(d) <- value

Arguments

d

A dive (object of class "dive").

value

A numeric vector containing elapsed times 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 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.

Value

times.dive returns a numeric vector containing the elapsed times at each waypoint, in minutes.

Author(s)

\adrian

.

See Also

depths.dive, durations.dive, dive.

Examples

   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

scuba documentation built on Oct. 18, 2022, 5:06 p.m.