trimix | R Documentation |
Create a Trimix gas.
trimix(fO2, fHe, fN2)
fO2, fHe, fN2 |
Fractions (between 0 and 1) of oxygen, helium and nitrogen, respectively, in the trimix gas. |
An object of class "gas"
represents a breathing gas.
Such objects are required for various calculations in the
scuba
library.
The value returned by trimix
represents Trimix
(oxygen-nitrogen-helium mixture) with the fractions of oxygen,
nitrogen and helium specified by the arguments fO2
, fN2
,
fHe
respectively. These fractions should sum to 1.
If only two of the gas fractions are given, the missing fraction will be calculated so that the three values sum to 1.
There are methods for print
and summary
for objects of class "gas"
.
An object of class "gas"
representing
Trimix with the specified composition.
.
nitrox
,
air
# Trimix 18/50 # (18% oxygen, 50% helium) trimix(0.18, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.