| Title: | Global Warming Potential Lookups and CO2-Equivalent Conversion |
|---|---|
| Description: | Provides curated Global Warming Potential (GWP) values from IPCC Assessment Reports 4 through 6, gas name standardization across documented naming variants (IUPAC/common names, per-report naming changes, and EPA/data.gov naming), and CO2-equivalent conversion utilities. Values are drawn from official IPCC source tables, with corrections applied for two substances where the published table is known to contain errors; see the package vignette for details and source-by-source provenance notes. |
| Authors: | Joe Corra [aut, cre, cph] |
| Maintainer: | Joe Corra <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-10-11 10:13:03 UTC |
| Source: | https://github.com/joewcorra/co2e |
Convert a mass of greenhouse gas to CO2-equivalent
as_co2e(value, gas, ar = "AR6", horizon = 100)as_co2e(value, gas, ar = "AR6", horizon = 100)
value |
Numeric vector of gas quantities (any consistent mass unit). |
gas |
Character vector of gas identifiers, recycled against |
ar |
Assessment report: one of |
horizon |
Time horizon in years: one of |
A numeric vector of CO2-equivalent quantities, in the same units
as value.
as_co2e(10, gas = "HFC-134a", ar = "AR6", horizon = 100)as_co2e(10, gas = "HFC-134a", ar = "AR6", horizon = 100)
Alternate names each gas is known by, for use with standardize_gas().
gas_synonymsgas_synonyms
A tibble with columns:
Canonical gas identifier, joins to gases$gas_id.
An alternate name.
One of "common_name", "ar_naming_variant",
"formatting_variant", "epa_name".
Free-text provenance/context for this synonym.
Documented naming variants from GHG Protocol Global Warming Potential Values (August 2024) footnotes, IPCC AR6 Table 7.SM.7, and EPA/data.gov naming.
One row per substance covered by the package.
gasesgases
A tibble with columns:
Canonical gas identifier.
Chemical formula.
CAS Registry Number.
One of "HFC", "HCFC", "CFC", "halon", "PFC",
"other".
Logical; always FALSE in the current release (blends
are not yet in scope).
Formula and CAS from IPCC AR6 WGI Chapter 7 Supplementary Material, Table 7.SM.7.
Returns the GWP for one or more gases from a given IPCC Assessment Report
and time horizon. Vectorized over gas.
gwp(gas, ar = "AR6", horizon = 100)gwp(gas, ar = "AR6", horizon = 100)
gas |
Character vector of gas identifiers (e.g. |
ar |
Assessment report: one of |
horizon |
Time horizon in years: one of |
A numeric vector the same length as gas. Returns NA with a
warning for any gas/AR/horizon combination not present in gwp_values.
gwp("HFC-134a", ar = "AR6", horizon = 100) gwp(c("CO2", "CH4", "HFC-32"), ar = "AR5", horizon = 100)gwp("HFC-134a", ar = "AR6", horizon = 100) gwp(c("CO2", "CH4", "HFC-32"), ar = "AR5", horizon = 100)
Compare a gas's GWP across IPCC Assessment Reports
gwp_compare(gas, horizon = 100)gwp_compare(gas, horizon = 100)
gas |
A single gas identifier (e.g. |
horizon |
Time horizon in years: one of |
A tibble with one row per assessment report that reports a value
for gas at the given horizon, columns ar and gwp.
gwp_compare("CFC-11")gwp_compare("CFC-11")
Long-format lookup table: one row per gas x IPCC Assessment Report x time horizon.
gwp_valuesgwp_values
A tibble with columns:
Canonical gas identifier, joins to gases$gas_id.
Assessment report: "AR4", "AR5", or "AR6".
Time horizon in years: 20, 100, or 500.
Global Warming Potential (dimensionless, relative to CO2).
Citation for this row's value.
EPA/data.gov IPCC AR4-AR6 GWPs, doi:10.23719/1529821; AR6 methane fossil/non-fossil split from GHG Protocol Global Warming Potential Values (August 2024).
gas_id
Matches input names against gases$gas_id first, then against
gas_synonyms$synonym, using a normalized (case/whitespace/hyphen
insensitive) comparison. No fuzzy matching is performed - an unmatched
name returns NA, it is never guessed at.
standardize_gas(x)standardize_gas(x)
x |
Character vector of gas names as they appear in your data. |
A tibble with columns input, gas_id (NA if unmatched), and
match_type ("gas_id", "synonym", or "unmatched").
standardize_gas(c("HFC-134a", "R-134a", "not a real gas"))standardize_gas(c("HFC-134a", "R-134a", "not a real gas"))