Electrical Energy Monthly Consumption per Class or Industrial Sector
load_epe(dataset, geo_level = "state", raw_data = FALSE, language = "eng")Dataset name: "consumer_energy_consumption", "industrial_energy_consumption", "national_energy_balance", or "energy_state_panel".
"national_energy_balance" covers 1970-2025 (yearly), reading EPE's consolidated BEN dashboard table – account labels are the source's own wording (e.g. "Refinarias de Petroleo"), not a synthetic reconstruction; a "tipo"/"type" column (Fontes de Energia Primaria/Secundaria/Total) is included.
"energy_state_panel" covers 2011-2025 (yearly), one row per state.
"consumer_energy_consumption" covers 2004 onward and "industrial_energy_consumption" covers 2012 onward (monthly, including the current partial year).
Geographical level: "state" or "subsystem". Only applies to
"consumer_energy_consumption" and "industrial_energy_consumption". "region" is not
currently supported for either dataset – passing geo_level = "region" will fail
during download, not at validation time.
A boolean setting the return of raw (TRUE) or processed (FALSE) data.
A string that indicates in which language the data will be returned. Portuguese ("pt") and English ("eng") are supported.
A list of tibbles (if raw_data = TRUE) or a tibble (if raw_data = FALSE).
if (FALSE) { # interactive()
### DO NOT RUN ###
# download treated (raw_data = FALSE) data about
# consumer energy consumption (dataset = "consumer_energy_consumption")
# at the state level (geo_level = "state")
data <- load_epe(
dataset = "consumer_energy_consumption",
geo_level = "state",
raw_data = FALSE
)
# download treated (raw_data = FALSE) data
# from the National Energy Balance (dataset = "national_energy_balance")
balance <- load_epe(
dataset = "national_energy_balance",
raw_data = FALSE
)
# download treated (raw_data = FALSE) data
# from the State Energy Production Panel (dataset = "energy_state_panel")
panel <- load_epe(
dataset = "energy_state_panel",
raw_data = FALSE
)
}