get_entsoE_data {oRaklE} | R Documentation |
Load data from the ENTSO-E Transparency Platform
Description
This function makes various API requests to the Transparency Platform of the European Network of Transmission System Operators for Electricity (ENTSO-E, https://transparency.entsoe.eu/) and stores the downloaded load data in a data frame. The earliest possible year for the requested load time series is 2017.
Usage
get_entsoE_data(
start_year,
end_year,
country,
api_key = "default",
dry_run = FALSE
)
Arguments
start_year |
Numeric. The starting year for which load data will be requested. |
end_year |
Numeric. The final year for which load data will be requested. |
country |
Character. The country name for which load data will be requested provided as the English name of the country. |
api_key |
Character. A valid API key for the ENTSO-E Transparency Platform. If set to "default", one of the deposited keys will be used. |
dry_run |
Boolean. Defaults to FALSE. This is only set to TRUE for the example run. |
Value
A Data Frame with the following columns
- date
The series of dates, POSIXct format.
- load
The series of load data, numeric
- unit
The series of units in which the load data is provided, character.
- year
The year of each load data point, numeric
- time_interval
The time resolution of each load data point, character
- country
The ISO2C Country Code, character
Examples
example_demand_data <- get_entsoE_data(2017, 2021, "France", api_key = "default", dry_run = TRUE)
print(example_demand_data[1:20, ])