Skip to contents

Returns free allowance allocations per installation per year. Same source file as co2_euets_emissions().

Usage

co2_euets_allocations(
  country = NULL,
  year = NULL,
  file_year = NULL,
  refresh = FALSE
)

Arguments

country

Optional character vector of two-letter registry codes to filter (e.g. c("DE", "FR", "PL")).

year

Optional integer vector of emissions years. When NULL, returns all years in the latest published file. Note that the file year (e.g. "2025") refers to publication year; emissions data covers calendar years up to publication year -1.

file_year

Publication year of the DG CLIMA file to use. Default is the latest year available in the package (see co2_euets_files()).

refresh

Logical. Re-download? Default FALSE.

Value

A data frame with country, installation_id, year, allocation_eua.

Examples

if (FALSE) { # \dontrun{
# DG CLIMA file schema drifted in 2026; parser needs updating.
# Tracked at https://github.com/charlescoverdale/carbondata/issues
alloc <- co2_euets_allocations(country = "DE")
} # }