load_year_ahead_forecast_margin: Get Year-Ahead Forecast Margin (8.1)

View source: R/en_load.R

load_year_ahead_forecast_marginR Documentation

Get Year-Ahead Forecast Margin (8.1)

Description

It is defined as a difference between yearly forecast of available generation capacity and yearly forecast of total load, taking into account the forecast of total generation capacity forecast of availability of generation and forecast of reserves contracted for system services.

Usage

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

Arguments

eic

Energy Identification Code of the bidding zone/ country/control area

period_start

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

period_end

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

tidy_output

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

security_token

Security token for ENTSO-E transparency platform

Examples

df <- entsoeapi::load_year_ahead_forecast_margin(
  eic          = "10Y1001A1001A82H",
  period_start = lubridate::ymd(x = "2019-01-01", tz = "CET"),
  period_end   = lubridate::ymd(x = "2019-12-31", tz = "CET"),
  tidy_output  = TRUE
)

str(df)


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