gen_per_gen_unit: Get Aggregated Generation per Generation Unit (16.1.A)

View source: R/en_generation.R

gen_per_gen_unitR Documentation

Get Aggregated Generation per Generation Unit (16.1.A)

Description

Actual net generation output (MW) and optionally consumption data from all generation units. Data are aggregated as an average of generation outputs or consumption.

Usage

gen_per_gen_unit(
  eic = NULL,
  period_start = lubridate::ymd(Sys.Date() - lubridate::days(x = 1L), tz = "CET"),
  period_end = lubridate::ymd(Sys.Date(), tz = "CET"),
  gen_type = NULL,
  tidy_output = TRUE,
  security_token = Sys.getenv("ENTSOE_PAT")
)

Arguments

eic

Energy Identification Code of the control area or bidding zone

period_start

POSIXct or YYYY-MM-DD HH:MM:SS format

period_end

POSIXct or YYYY-MM-DD HH:MM:SS format

gen_type

Defaults to NULL, otherwise list of generation type codes from asset_types table

tidy_output

Defaults to TRUE. If TRUE, then flatten nested tables.

security_token

Security token for ENTSO-E transparency platform

Examples

df <- entsoeapi::gen_per_gen_unit(
  eic          = "10YDE-VE-------2",
  period_start = lubridate::ymd(x = "2020-01-31", tz = "CET"),
  period_end   = lubridate::ymd(x = "2020-02-06", tz = "CET"),
  gen_type     = c("B04", "B05"),
  tidy_output  = TRUE
)
str(df)


krose/entsoeapi documentation built on Jan. 13, 2025, 9:01 p.m.