Learn R Programming

scuba (version 1.8-0)

descent: Descent Rate or Time

Description

Specify an Descent Rate or Descent Time.

Usage

descent(speed=NULL, time=NULL)

Arguments

speed
Descent rate in metres per minute. Incompatible with time.
time
Total descent time in minutes. Incompatible with speed.

Value

An object of class "rate" representing the descent rate or descent 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 descent represents a descent rate or descent time. Exactly one of the arguments speed and time should be given. If speed is given, this specifies a fixed rate of descent, in metres per minute. If time is given, this specifies a fixed total time of descent, in minutes.

See Also

dive, descent

Examples

Run this code
  # Descend at 30 metres/minute
  descent(30)
  # Descend in exactly 3 minutes
  descent(time=3)

Run the code above in your browser using DataLab