tanklist {scuba} | R Documentation |
Extract or Change the Breathing Gas Tanks in a Dive
Description
Extracts or modifies the list of breathing gases in a dive object.
Usage
tanklist(d)
tanklist(d) <- value
Arguments
d |
The dive (an object of class |
value |
The new tank list. A list, whose entries are gases
(objects of class |
Details
An object of class "dive"
represents a scuba dive,
including information about depth, time and gas breathed at each
stage of the dive. These objects are created by the function
dive
.
The tank list of a dive object is a list of the tanks of breathing gas
that were used (or available to be used) during the dive.
The function tanklist
returns this list.
If a new value is assigned to the tank list of a dive d
,
then d
is changed. The new dive d
is conducted
to the same depths and times as the old d
, but with different
gases.
Value
The value of tanklist(d)
is a list whose elements are
gases (objects of class "gas"
).
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au.
See Also
Examples
d <- dive(air, c(30,4), 5, nitrox(0.5), c(5,10))
d
tanklist(d)
tanklist(d) <- list(air, nitrox(0.8))
d
tanklist(d) <- list(travel=air, deco=nitrox(0.8))
d