View source: R/calculate_dic.R
calculate_dic | R Documentation |
Calculate dissolved inorganic carbon
calculate_dic(ph, alkalinity, temperature = 25, method = "a")
ph |
A vector of pH values. |
alkalinity |
A vector of alkalinities, in mg CaCO3/L |
temperature |
Water tempterature in degress C |
method |
Either "a" or "b". Method "a", the default, is described in https://doi.org/10.1002/j.1551-8833.1980.tb04616.x, and it applies at 25 degrees C only. Method "b" uses PHREEQC and incorporates temperature as a variable, but it may not converge. |
A numeric vector of dissolved inorganic carbon concentrations, in mg C/L.
calculate_dic(7.5, 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.