Learn R Programming

scuba (version 1.8-0)

air: Air

Description

A dataset representing air as a breathing gas, and a function which tests whether a gas is air.

Usage

air is.air(g)

Arguments

g
An object of class "gas".

Details

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

The dataset air represents compressed air (21% oxygen, 79% nitrogen) as a breathing gas. It is equivalent to nitrox(0.21).

The function is.air expects its argument g to be a gas object. It returns TRUE if g is equivalent to air, and FALSE otherwise.

See Also

nitrox

Examples

Run this code
  v <- air
  is.air(v)
  v <- nitrox(0.21)
  is.air(v)
  # both are TRUE

Run the code above in your browser using DataLab