Learn R Programming

respirometry (version 2.0.0)

conv_nh4: Convert between units of ammonia (NH3) / ammonium (NH4+)

Description

Ammonia or nitrogen excretion can be measured in a variety of ways. Convert between different measurements.

Usage

conv_nh4(n_waste, from = "umol_NH4", to = "all")

Arguments

n_waste

a numeric vector of the ammonia or nitrogen value(s).

from

a string describing the unit used to measure n_waste. Default is "umol_NH4" Options are:

  • umol_NH3

  • umol_NH4

  • mg_NH3

  • mg_NH4

  • mg_N

to

a single string either describing the unit to which the conversion should be conducted (options are the same as in from), or the string "all" to return all units.

Author

Matthew A. Birk, matthewabirk@gmail.com

Details

The sum of NH4+ and NH3 species are considered (i.e. TAN). Conversions are based on relationships and values from the package marelac.

See Also

predict_nh3, conv_o2

Examples

Run this code
conv_nh4(n_waste = 100)
conv_nh4(n_waste = 100, from = 'mg_N')
conv_nh4(n_waste = 100, from = 'mg_N', to = 'umol_NH4')

Run the code above in your browser using DataLab