Learn R Programming

scuba (version 1.11-1)

is.nitrox: Recognise a Nitrox Gas

Description

Determines whether a given gas is nitrox.

Usage

is.nitrox(g)

Arguments

g

An object of class "gas".

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

Details

An object of class "gas" represents a breathing gas. Such objects are required for various calculations in the scuba library.

The function is.nitrox expects its argument g to be a gas object. It returns TRUE if g is a nitrox gas (a mixture of oxygen and nitrogen), and FALSE otherwise.

See Also

nitrox

Examples

Run this code
  v <- nitrox(0.50)
  is.nitrox(v)
  is.nitrox(air)

Run the code above in your browser using DataLab