convO2conc: Conversion between oxygen concentration units.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/convO2conc.R

Description

Converts between different conversion units (mg, ml, micromol, mmol)

Usage

1
2
3
4
5
convO2conc(
  x,
  from = c("mg", "ml", "umol", "mmol"),
  to = c("umol", "mg", "ml", "mmol")
)

Arguments

x

A single value or a vector of values to be converted.

from

Oxygen concentration unit of x. Must be one of "mg", "ml", "umol" [for micromol] or "mmol".

to

Desired oxygen concentration unit. Must be one of "mg", "ml", "umol" [for micromol] or "mmol".

Details

Conversion from one unit of oxygen concentration to another.

Value

Returns a vector of converted values with same length as the vector x.

Author(s)

Denis Chabot, Maurice-Lamontagne Institute, DFO, Canada.

References

GarcĂ­a, H. E. and Gordon, L. I. (1992) Oxygen solubility in seawater: better fitting equations. Limnology and Oceanography 37, 1307-1312.

Examples

1
2
3
convO2conc(10)
convO2conc(10, from="mg", to="umol")
convO2conc(250, from="umol", to="mg")

denis-chabot/fishMO2 documentation built on July 16, 2020, 1:53 a.m.