Description Usage Arguments Examples
Calculate the pH based on bicarbonate and partial pressure of CO2
1 | henderson_hasselbalch(bicarbonate, pp_co2)
|
bicarbonate |
mmol/L |
pp_co2 |
partial pressure of carbon dioxide in mmHg |
1 2 3 4 5 6 7 8 | bicarbonate <- seq(10, 50, 5)
pp_co2 <- seq(20, 70, 10)
bc <- rep(bicarbonate, length(pp_co2))
pp <- rep(pp_co2, each = length(bicarbonate))
acidbase <- matrix(henderson_hasselbalch(bc, pp), nrow = 9, ncol = 6)
rownames(acidbase) <- paste("bicarb", bicarbonate)
colnames(acidbase) <- paste("PaCO2", pp_co2)
acidbase
|
PaCO2 20 PaCO2 30 PaCO2 40 PaCO2 50 PaCO2 60 PaCO2 70
bicarb 10 7.311832 7.135740 7.010802 6.913892 6.834710 6.767764
bicarb 15 7.487923 7.311832 7.186893 7.089983 7.010802 6.943855
bicarb 20 7.612862 7.436770 7.311832 7.214922 7.135740 7.068794
bicarb 25 7.709772 7.533680 7.408742 7.311832 7.232650 7.165704
bicarb 30 7.788953 7.612862 7.487923 7.391013 7.311832 7.244885
bicarb 35 7.855900 7.679808 7.554870 7.457960 7.378778 7.311832
bicarb 40 7.913892 7.737800 7.612862 7.515952 7.436770 7.369824
bicarb 45 7.965044 7.788953 7.664014 7.567104 7.487923 7.420976
bicarb 50 8.010802 7.834710 7.709772 7.612862 7.533680 7.466734
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.