Learn R Programming

scuba (version 1.8-0)

ascent: Ascent Rate or Time

Description

Specify an Ascent Rate or Ascent Time.

Usage

ascent(speed=NULL, time=NULL)

Arguments

speed
Ascent rate in metres per minute. Incompatible with time.
time
Total ascent time in minutes. Incompatible with speed.

Value

An object of class "rate" representing the ascent rate or ascent time.

Details

An object of class "rate" represents a diver's rate of ascent or descent, or the total time taken to ascend or descend. Such objects are useful in describing dives, especially in the function dive.

The value returned by ascent represents an ascent rate or ascent time. Exactly one of the arguments speed and time should be given. If speed is given, this specifies a fixed rate of ascent, in metres per minute. If time is given, this specifies a fixed total time of ascent, in minutes.

See Also

dive, descent

Examples

Run this code
  # Ascend at 18 metres/minute
  ascent(18)
  # Ascend in exactly 3 minutes
  ascent(time=3)

Run the code above in your browser using DataLab