carbulate: Calculate Carbonate Speciation using DIC, pH, and Temperature

Description Usage Arguments Author(s) Examples

View source: R/carbulate.R

Description

This function calculates the speciation of dissolved inorganic carbon given the measured pH, DIC concentration, and water temperature. It will add on the concentrations of each carbonate species (CO2(aq), HCO3-, CO3–) to your dataframe 'dat'.

Usage

1
carbulate(dat, DIC_col_mg.L, pH_col, temp_col_C, pressure_col_kPa)

Arguments

dat

Your dataframe with parameters of interest

DIC_col_mg.L

Name of column that contains your measured dissolved inorganic carbon concentration (mgC/L)

pH_col

Name of column with your measured pH

temp_col_C

Name of column with your measured water temperature (in Celsius)

pressure_col_kPa

Name of column with the field atmospheric pressure (in kPa)

Author(s)

Pieter J. K. Aukes

Examples

1
2
3
4
5
6
7
water.dat <- data.frame(sample = c('Lake A', 'Lake B', 'Lake C'),
Baro_kPa = c(99.9,98.8,98.9),
DIC_mgC.L = c(1.2,8.5,15),
pH = c(6.8, 7.2, 5.5),
Temp_C = c(12,15,18))

water.dat <- carbulate(water.dat, 'DIC_mgC.L', 'pH', 'Temp_C', 'Baro_kPa')

paukes/carbulate documentation built on Dec. 21, 2020, 12:18 p.m.