util.units

## Don't show: data(thermo)
thermo$obigt: 1911 aqueous, 3588 total species
## End(Don't show) ## examples using convert # temperature (Kelvin) to degrees C convert(273.15, "C")
[1] 0
# temperature (degrees C) to Kelvin convert(100, "K")
[1] 373.15
# Gibbs energy (cal mol-1) to/from logK convert(1000, "logK")
[1] -0.7330067
convert(1000, "logK", T=373.15)
[1] -0.5856785
convert(1, "G")
[1] -1364.244
# Eh (volt) to pe convert(-1, "pe")
[1] -16.90445
convert(-1, "pe", T=373.15)
[1] -13.5068
# logfO2 to E0 (volt) convert(-80, "E0")
info.character: found H2O(liq), also available in cr subcrt: 4 species at 298.15 K and 1 bar (wet) [1] -0.3681732
convert(-80, "E0", pH=5)
info.character: found H2O(liq), also available in cr subcrt: 4 species at 298.15 K and 1 bar (wet) [1] -0.2498612
convert(-80, "E0", pH=5, logaH2O=-5)
info.character: found H2O(liq), also available in cr subcrt: 4 species at 298.15 K and 1 bar (wet) [1] -0.1019711
# calorie to/from joule convert(10, "J")
[1] 41.84
convert(10, "cal")
[1] 2.390057
# cm3bar to calories convert(10, "calories")
[1] 0.2390057
### examples showing unit settings # make K the units for temperature arguments to subcrt() and affinity() T.units("K")
changed temperature units to K
# return to default - degrees C T.units("C")
changed temperature units to C