View source: R/en_generation.R
gen_per_gen_unit | R Documentation |
Actual net generation output (MW) and optionally consumption data from all generation units. Data are aggregated as an average of generation outputs or consumption.
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")
)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.