View source: R/get_historic_load_data.R
get_historic_load_data | R Documentation |
This function utilizes two historical load datasets obtained from the archive of https://www.entsoe.eu/data/power-stats/.
It calculates the hourly average load for each year and appends the results to the long-term dataframe generated by decompose_load_data
.
get_historic_load_data(longterm)
longterm |
A data frame object with "country", "year", and "avg_hourly_demand" columns resulting from the function |
Data frame with "country", "year", and "avg_hourly_demand" (yearly average of hourly demand).
print("Input dataframe should be in the following form:")
example_decomposed_data$longterm
example_longterm_data <- get_historic_load_data(example_decomposed_data$longterm)
print("Historic load data is added starting from 2006.")
example_longterm_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.