get_historic_load_data: Load historic yearly average load data

View source: R/get_historic_load_data.R

get_historic_load_dataR Documentation

Load historic yearly average load data

Description

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.

Usage

get_historic_load_data(longterm)

Arguments

longterm

A data frame object with "country", "year", and "avg_hourly_demand" columns resulting from the function decompose_load_data.

Value

Data frame with "country", "year", and "avg_hourly_demand" (yearly average of hourly demand).

Examples


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


oRaklE documentation built on June 8, 2025, 12:41 p.m.