Code
tibble(LAST_DOWNLOAD = as.Date(file.info("~/Library/Mobile\ Documents/com~apple~CloudDocs/website/data/eurostat/nrg_ti_gas.RData")$mtime)) %>%
print_table_conditional()
LAST_DOWNLOAD |
---|
2024-08-21 |
Data - Eurostat
tibble(LAST_DOWNLOAD = as.Date(file.info("~/Library/Mobile\ Documents/com~apple~CloudDocs/website/data/eurostat/nrg_ti_gas.RData")$mtime)) %>%
print_table_conditional()
LAST_DOWNLOAD |
---|
2024-08-21 |
LAST_COMPILE |
---|
2024-11-05 |
%>%
nrg_ti_gas group_by(time) %>%
summarise(Nobs = n()) %>%
arrange(desc(time)) %>%
head(1) %>%
print_table_conditional()
time | Nobs |
---|---|
2022 | 26396 |
%>%
nrg_ti_gas left_join(siec, by = "siec") %>%
group_by(siec, Siec) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
print_table_conditional()
siec | Siec | Nobs |
---|---|---|
G3000 | Natural gas | 426360 |
G3200 | Liquefied natural gas | 426357 |
%>%
nrg_ti_gas left_join(unit, by = "unit") %>%
group_by(unit, Unit) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
print_table_conditional()
unit | Unit | Nobs |
---|---|---|
TJ_GCV | Terajoule (gross calorific value - GCV) | 426362 |
MIO_M3 | Million cubic metres | 426355 |
%>%
nrg_ti_gas 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 .} {
%>%
nrg_ti_gas group_by(time) %>%
summarise(Nobs = n()) %>%
arrange(desc(time)) %>%
print_table_conditional()