Cooling and heating degree days by country - monthly data

Data - Eurostat

Info

source dataset .html .RData
eurostat nrg_chdd_m 2024-11-01 2024-10-09

Data on energy

source dataset .html .RData
ec WOB 2024-09-15 2024-08-25
eurostat ei_isen_m 2024-11-05 2024-10-09
eurostat nrg_bal_c 2023-12-31 2024-10-08
eurostat nrg_pc_202 2024-11-01 2024-10-08
eurostat nrg_pc_203 2023-06-11 2024-10-08
eurostat nrg_pc_203_c 2024-11-01 2024-10-08
eurostat nrg_pc_203_h 2024-11-01 2024-11-05
eurostat nrg_pc_203_v 2024-11-01 2024-10-08
eurostat nrg_pc_204 2024-11-01 2024-11-05
eurostat nrg_pc_205 2023-06-11 2024-10-08
fred energy 2024-11-01 2024-11-01
iea world_energy_balances_highlights_2022 2024-06-20 2023-04-24
wb CMO 2024-06-20 2024-05-23
wdi EG.GDP.PUSE.KO.PP.KD 2024-09-18 2024-09-18
wdi EG.USE.PCAP.KG.OE 2024-09-18 2024-09-18
yahoo energy 2024-11-05 2024-11-05

LAST_COMPILE

LAST_COMPILE
2024-11-05

Last

Code
nrg_chdd_m %>%
  group_by(time) %>%
  summarise(Nobs = n()) %>%
  arrange(desc(time)) %>%
  head(1) %>%
  print_table_conditional()
time Nobs
2023M12 58

indic_nrg

Code
nrg_chdd_m %>%
  left_join(indic_nrg, by = "indic_nrg") %>%
  group_by(indic_nrg, Indic_nrg) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  print_table_conditional()
indic_nrg Indic_nrg Nobs
CDD Cooling degree days 15660
HDD Heating degree days 15660

geo

Code
nrg_chdd_m %>%
  left_join(geo, by = "geo") %>%
  group_by(geo, Geo) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  mutate(Geo = ifelse(geo == "DE", "Germany", Geo)) %>%
  mutate(Flag = gsub(" ", "-", str_to_lower(Geo)),
         Flag = paste0('<img src="../../bib/flags/vsmall/', Flag, '.png" alt="Flag">')) %>%
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

time

Code
nrg_chdd_m %>%
  group_by(time) %>%
  summarise(Nobs = n()) %>%
  arrange(desc(time)) %>%
  print_table_conditional()

Heating degree days

Germany

All

Code
nrg_chdd_m %>%
  filter(geo == "DE",
         indic_nrg == "HDD") %>%
  month_to_date %>%
  ggplot + geom_line(aes(x = date, y = values)) +
  theme_minimal() + xlab("") + ylab("") +
  scale_x_date(breaks = as.Date(paste0(seq(1960, 2025, 5), "-01-01")),
               labels = date_format("%Y")) + 
  scale_y_continuous(breaks = seq(0, 1000, 100))

2015-

Code
nrg_chdd_m %>%
  filter(geo == "DE",
         indic_nrg == "HDD") %>%
  month_to_date %>%
  filter(date >= as.Date("2015-01-01")) %>%
  ggplot + geom_line(aes(x = date, y = values)) +
  theme_minimal() + xlab("") + ylab("") +
  scale_x_date(breaks = as.Date(paste0(seq(1960, 2025, 1), "-01-01")),
               labels = date_format("%Y")) + 
  scale_y_continuous(breaks = seq(0, 1000, 100))