Learn R Programming

scuba (version 1.8-0)

trimix: Trimix Gas

Description

Create a Trimix gas.

Usage

trimix(fO2, fHe, fN2)

Arguments

fO2, fHe, fN2
Fractions (between 0 and 1) of oxygen, helium and nitrogen, respectively, in the trimix gas.

Value

An object of class "gas" representing Trimix with the specified composition.

Details

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".

See Also

nitrox, air

Examples

Run this code
  # Trimix 18/50
  #            (18% oxygen, 50% helium) 
  trimix(0.18, 0.5)

Run the code above in your browser using DataLab