| Title: | Access Carbon Market Data from Emissions Trading Systems and Voluntary Registries |
|---|---|
| Description: | Unified access to carbon market data from compliance emissions trading systems ('EU ETS', 'UK ETS', 'RGGI', California Cap-and-Trade) and voluntary carbon markets (Verra, Gold Standard, American Carbon Registry, Climate Action Reserve, via the Berkeley Voluntary Registry Offsets Database and the 'CarbonPlan' 'OffsetsDB' API). Includes cross-market price data from the 'International Carbon Action Partnership' ('ICAP') Allowance Price Explorer <https://icapcarbonaction.com/en/ets-prices>, global carbon pricing from the World Bank Carbon Pricing Dashboard <https://carbonpricingdashboard.worldbank.org/>, and the historical 'RFF' World Carbon Pricing Database following Dolphin, Pollitt and Newbery (2020) <doi:10.1038/s41597-022-01659-x>. Data is downloaded from public sources on first use and cached locally. |
| Authors: | Charles Coverdale [aut, cre] |
| Maintainer: | Charles Coverdale <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-05-28 06:42:13 UTC |
| Source: | https://github.com/cran/carbondata |
Returns information about the local cache: directory, file count,
size, and list of cached files. Useful for debugging stale
results or deciding whether to call co2_clear_cache().
co2_cache_info()co2_cache_info()
A list with elements dir, n_files, size_bytes,
size_human, and files (a data frame with name,
size_bytes, modified).
Other configuration:
co2_clear_cache()
op <- options(carbondata.cache_dir = tempdir()) co2_cache_info() options(op)op <- options(carbondata.cache_dir = tempdir()) co2_cache_info() options(op)
CAD Trust is the Chia-Network "cadt" software designed to be self-hosted. There is no unauthenticated public API. To use CAD Trust data you must either:
Self-host a cadt node, or
Arrange a private partnership for API access via https://climateactiondata.org/how-to-connect/
co2_cad_trust(...)co2_cad_trust(...)
... |
Ignored. |
This function is a placeholder that errors with guidance. CAD Trust support is deferred to carbondata v0.2.0 once CAD Trust offers a stable public endpoint.
Never returns (always errors).
Other voluntary markets:
co2_offsets_db(),
co2_vrod()
## Not run: co2_cad_trust() ## End(Not run)## Not run: co2_cad_trust() ## End(Not run)
Fetches the California Cap-and-Trade program overall cap and allocation channels, by vintage year.
co2_california_caps(refresh = FALSE)co2_california_caps(refresh = FALSE)
refresh |
Re-download? Default |
A data frame.
Other compliance markets:
co2_california_prices(),
co2_rggi_allowances(),
co2_rggi_state_proceeds(),
co2_ukets(),
co2_ukets_allocations()
## Not run: caps <- co2_california_caps() ## End(Not run)## Not run: caps <- co2_california_caps() ## End(Not run)
Fetches the California Air Resources Board auction settlement price time series, updated quarterly after each joint California- Quebec auction.
co2_california_prices(refresh = FALSE)co2_california_prices(refresh = FALSE)
refresh |
Re-download? Default |
A data frame with joint_auction, quarter,
settlement_price_usd, reserve_price_usd.
Other compliance markets:
co2_california_caps(),
co2_rggi_allowances(),
co2_rggi_state_proceeds(),
co2_ukets(),
co2_ukets_allocations()
## Not run: prices <- co2_california_prices() ## End(Not run)## Not run: prices <- co2_california_prices() ## End(Not run)
Deletes all locally cached carbon market data files. The next call to any data function will re-download.
co2_clear_cache()co2_clear_cache()
Invisibly returns NULL.
Other configuration:
co2_cache_info()
op <- options(carbondata.cache_dir = tempdir()) co2_clear_cache() options(op)op <- options(carbondata.cache_dir = tempdir()) co2_clear_cache() options(op)
Returns free allowance allocations per installation per year.
Same source file as co2_euets_emissions().
co2_euets_allocations( country = NULL, year = NULL, file_year = NULL, refresh = FALSE )co2_euets_allocations( country = NULL, year = NULL, file_year = NULL, refresh = FALSE )
country |
Optional character vector of two-letter registry
codes to filter (e.g. |
year |
Optional integer vector of emissions years. When
|
file_year |
Publication year of the DG CLIMA file to use.
Default is the latest year available in the package (see
|
refresh |
Logical. Re-download? Default |
A data frame with country, installation_id, year,
allocation_eua.
Other EU ETS:
co2_euets_emissions(),
co2_euets_files(),
co2_euets_installations(),
co2_euets_price(),
co2_euets_surrendered()
## Not run: alloc <- co2_euets_allocations(country = "DE") ## End(Not run)## Not run: alloc <- co2_euets_allocations(country = "DE") ## End(Not run)
Fetches annual verified greenhouse-gas emissions for installations covered by the EU Emissions Trading System, from the DG CLIMA Union Registry bulk download. Coverage: ~10,000 stationary installations plus ~1,500 aircraft operators across the EU, EEA, and linked Swiss ETS. Emissions data from 2005 onwards; annual files published each April for the prior compliance year.
co2_euets_emissions( country = NULL, year = NULL, file_year = NULL, refresh = FALSE )co2_euets_emissions( country = NULL, year = NULL, file_year = NULL, refresh = FALSE )
country |
Optional character vector of two-letter registry
codes to filter (e.g. |
year |
Optional integer vector of emissions years. When
|
file_year |
Publication year of the DG CLIMA file to use.
Default is the latest year available in the package (see
|
refresh |
Logical. Re-download? Default |
A data frame with columns country, installation_id,
installation_name, activity, year,
verified_emissions_tco2e, allocation_eua.
Other EU ETS:
co2_euets_allocations(),
co2_euets_files(),
co2_euets_installations(),
co2_euets_price(),
co2_euets_surrendered()
## Not run: de <- co2_euets_emissions(country = "DE") ## End(Not run)## Not run: de <- co2_euets_emissions(country = "DE") ## End(Not run)
Returns a data frame of the DG CLIMA file vintages supported. When DG CLIMA publishes a newer file, upgrade the package.
co2_euets_files()co2_euets_files()
A data frame.
Other EU ETS:
co2_euets_allocations(),
co2_euets_emissions(),
co2_euets_installations(),
co2_euets_price(),
co2_euets_surrendered()
co2_euets_files()co2_euets_files()
Returns the registry of stationary EU ETS installations with operator name, activity type, country, city, and permit details. Sourced from the DG CLIMA Union Registry snapshot.
co2_euets_installations(country = NULL, refresh = FALSE)co2_euets_installations(country = NULL, refresh = FALSE)
country |
Optional two-letter registry codes. |
refresh |
Re-download? Default |
A data frame.
Other EU ETS:
co2_euets_allocations(),
co2_euets_emissions(),
co2_euets_files(),
co2_euets_price(),
co2_euets_surrendered()
## Not run: inst <- co2_euets_installations(country = "PL") ## End(Not run)## Not run: inst <- co2_euets_installations(country = "PL") ## End(Not run)
Fetches EU Allowance (EUA) primary-auction settlement prices from the EEX public auction report. Auctions are held several times per week; each year's file accumulates all auctions for that year.
co2_euets_price(from = NULL, to = NULL, year = NULL, refresh = FALSE)co2_euets_price(from = NULL, to = NULL, year = NULL, refresh = FALSE)
from, to
|
Optional character or Date. Date range. |
year |
Optional integer year. If supplied, only the file for
that year is fetched (faster than |
refresh |
Re-download? Default |
A data frame with date, auction_name, contract,
status, price_eur, min_bid_eur, max_bid_eur, volume_t.
Other EU ETS:
co2_euets_allocations(),
co2_euets_emissions(),
co2_euets_files(),
co2_euets_installations(),
co2_euets_surrendered()
## Not run: prices <- co2_euets_price(year = 2025) ## End(Not run)## Not run: prices <- co2_euets_price(year = 2025) ## End(Not run)
Returns cumulative total surrendered allowances per installation, compliance code, and account closure date. Per-year surrender events require the EUTL transaction log ZIP, which is deferred to v0.2.0 because it is ~1.5 GB uncompressed and requires LZMA extraction.
co2_euets_surrendered(country = NULL, file_year = NULL, refresh = FALSE)co2_euets_surrendered(country = NULL, file_year = NULL, refresh = FALSE)
country |
Optional two-letter registry codes. |
file_year |
Publication year of the compliance file. Default is the latest in the package. |
refresh |
Re-download? Default |
A data frame with country, installation_id,
installation_name, compliance_code, compliance_status,
total_verified_emissions, total_surrendered_allowances,
year_of_first_emissions, year_of_last_emissions,
account_closure.
Other EU ETS:
co2_euets_allocations(),
co2_euets_emissions(),
co2_euets_files(),
co2_euets_installations(),
co2_euets_price()
## Not run: comp <- co2_euets_surrendered(country = "FR") ## End(Not run)## Not run: comp <- co2_euets_surrendered(country = "FR") ## End(Not run)
Fetches allowance prices across 20+ Emissions Trading Systems from the International Carbon Action Partnership (ICAP) Allowance Price Explorer. Covers EU ETS, UK ETS, California, RGGI, New Zealand, Korea, and other jurisdictions with auction and secondary-market prices where available.
co2_icap_prices(jurisdiction = NULL, refresh = FALSE)co2_icap_prices(jurisdiction = NULL, refresh = FALSE)
jurisdiction |
Optional character vector. Filter by
jurisdiction name (e.g. |
refresh |
Re-download? Default |
A data frame with date, jurisdiction, market_type
("primary" auction or "secondary"), price, and currency.
Other aggregators:
co2_rff_pricing(),
co2_world_bank()
## Not run: prices <- co2_icap_prices(jurisdiction = "EU ETS") ## End(Not run)## Not run: prices <- co2_icap_prices(jurisdiction = "EU ETS") ## End(Not run)
Returns a data frame of the carbon markets (compliance and voluntary) supported by this package, with coverage metadata.
co2_markets(type = c("all", "compliance", "voluntary"))co2_markets(type = c("all", "compliance", "voluntary"))
type |
Character. One of |
A data frame with columns market, name, type,
coverage_start, jurisdiction, function_name, and notes.
co2_markets() co2_markets(type = "compliance")co2_markets() co2_markets(type = "compliance")
Fetches the CarbonPlan OffsetsDB daily snapshots of voluntary carbon market projects and credits, stored as Parquet in a public S3 bucket. Covers Verra, ART TREES, Gold Standard, American Carbon Registry, and Climate Action Reserve.
co2_offsets_db(kind = c("projects", "credits"), date = NULL, refresh = FALSE)co2_offsets_db(kind = c("projects", "credits"), date = NULL, refresh = FALSE)
kind |
Character. |
date |
Optional character. ISO date of the snapshot to fetch
(must be a day CarbonPlan published; the function walks backwards
from this date up to 7 days). Default |
refresh |
Re-download? Default |
The CarbonPlan REST API at offsets-db-api.carbonplan.org was
deprecated; this function uses the S3 bucket directly. Parquet
reading requires an installed Parquet reader; the arrow
package is the recommended suggest.
A file path to the downloaded Parquet file. The caller
must have arrow or nanoparquet installed to read it.
Other voluntary markets:
co2_cad_trust(),
co2_vrod()
## Not run: path <- co2_offsets_db("projects") df <- arrow::read_parquet(path) ## End(Not run)## Not run: path <- co2_offsets_db("projects") df <- arrow::read_parquet(path) ## End(Not run)
Fetches the Dolphin-Pollitt-Newbery World Carbon Pricing Database for one country. Covers national-level carbon pricing from 1989 to present, with CO2 tax and ETS instruments harmonised across 200+ jurisdictions.
co2_rff_pricing(country, version = "v2026.1", refresh = FALSE)co2_rff_pricing(country, version = "v2026.1", refresh = FALSE)
country |
Character. Country name using underscores
(e.g. |
version |
Character. Dataset version folder. Default
|
refresh |
Re-download? Default |
A data frame of annual carbon prices by IPCC sector code.
Dolphin, G. G., Pollitt, M. G. and Newbery, D. M. (2020). "The political economy of carbon pricing: a panel analysis." Oxford Economic Papers, 72(2), 472–500. https://doi.org/10.1093/oep/gpz042
Other aggregators:
co2_icap_prices(),
co2_world_bank()
## Not run: uk <- co2_rff_pricing("United_Kingdom") ## End(Not run)## Not run: uk <- co2_rff_pricing("United_Kingdom") ## End(Not run)
Fetches the Regional Greenhouse Gas Initiative (RGGI) annual CO2 allowance distribution table from the public RGGI website. Covers 11 participating US states from 2009 onwards.
co2_rggi_allowances(year = NULL, refresh = FALSE)co2_rggi_allowances(year = NULL, refresh = FALSE)
year |
Integer year (2009-present). Default is the current year. |
refresh |
Re-download? Default |
Auction clearing prices are NOT returned here because RGGI
publishes them only as per-auction PDFs (no CSV aggregation
exists). For RGGI prices, use co2_icap_prices() with
jurisdiction = "Regional Greenhouse Gas Initiative".
A data frame of allowance distribution by state.
Other compliance markets:
co2_california_caps(),
co2_california_prices(),
co2_rggi_state_proceeds(),
co2_ukets(),
co2_ukets_allocations()
## Not run: a <- co2_rggi_allowances(year = 2026) ## End(Not run)## Not run: a <- co2_rggi_allowances(year = 2026) ## End(Not run)
Fetches cumulative auction proceeds time series for one RGGI state, indexed by auction number. Derived from the per-state XLSX files on rggi.org. Combining all states gives the full RGGI auction time series.
co2_rggi_state_proceeds(state, refresh = FALSE)co2_rggi_state_proceeds(state, refresh = FALSE)
state |
Two-letter state code (one of: CT, DE, MA, MD, ME, NH, NJ, NY, RI, VA, VT). |
refresh |
Re-download? Default |
A data frame.
Other compliance markets:
co2_california_caps(),
co2_california_prices(),
co2_rggi_allowances(),
co2_ukets(),
co2_ukets_allocations()
## Not run: ny <- co2_rggi_state_proceeds("NY") ## End(Not run)## Not run: ny <- co2_rggi_state_proceeds("NY") ## End(Not run)
Fetches the UK Emissions Trading Scheme Section 4 compliance report (verified emissions and allowance surrenders per account per scheme year), published annually by the UK Emissions Trading Registry after the 30 April reconciliation deadline.
co2_ukets(refresh = FALSE)co2_ukets(refresh = FALSE)
refresh |
Re-download? Default |
A data frame with one row per account-year.
Other compliance markets:
co2_california_caps(),
co2_california_prices(),
co2_rggi_allowances(),
co2_rggi_state_proceeds(),
co2_ukets_allocations()
## Not run: uk <- co2_ukets() ## End(Not run)## Not run: uk <- co2_ukets() ## End(Not run)
Fetches the UK ETS free-allocation table for stationary installations (OHA) published by DESNZ on GOV.UK. Filename includes a media GUID that changes when DESNZ republishes, so the package scrapes the stable publications landing page.
co2_ukets_allocations(sector = c("installations", "aviation"), refresh = FALSE)co2_ukets_allocations(sector = c("installations", "aviation"), refresh = FALSE)
sector |
Character. |
refresh |
Re-download? Default |
A data frame.
Other compliance markets:
co2_california_caps(),
co2_california_prices(),
co2_rggi_allowances(),
co2_rggi_state_proceeds(),
co2_ukets()
## Not run: alloc <- co2_ukets_allocations() ## End(Not run)## Not run: alloc <- co2_ukets_allocations() ## End(Not run)
Fetches the Berkeley GSPP Voluntary Registry Offsets Database, an aggregator of Verra, Gold Standard, ACR, CAR, and ART TREES project registrations and issuances. Released bimonthly under CC BY 4.0.
co2_vrod(refresh = FALSE)co2_vrod(refresh = FALSE)
refresh |
Re-download? Default |
A data frame of project-level data.
Other voluntary markets:
co2_cad_trust(),
co2_offsets_db()
## Not run: vrod <- co2_vrod() ## End(Not run)## Not run: vrod <- co2_vrod() ## End(Not run)
Fetches the World Bank Carbon Pricing Dashboard Excel file, which covers 70+ carbon pricing initiatives worldwide (carbon taxes + ETS) with price, coverage, and revenue data.
co2_world_bank(refresh = FALSE)co2_world_bank(refresh = FALSE)
refresh |
Re-download? Default |
The World Bank publishes a dated file every 6-12 months. This function scrapes the landing page to find the latest release.
A data frame.
Other aggregators:
co2_icap_prices(),
co2_rff_pricing()
## Not run: wb <- co2_world_bank() ## End(Not run)## Not run: wb <- co2_world_bank() ## End(Not run)