Code
tibble(LAST_DOWNLOAD = as.Date(file.info("~/iCloud/website/data/eurostat/ei_bpm6ca_m.RData")$mtime)) %>%
print_table_conditional()| LAST_DOWNLOAD |
|---|
| 2026-02-23 |
Data - Eurostat
tibble(LAST_DOWNLOAD = as.Date(file.info("~/iCloud/website/data/eurostat/ei_bpm6ca_m.RData")$mtime)) %>%
print_table_conditional()| LAST_DOWNLOAD |
|---|
| 2026-02-23 |
| LAST_COMPILE |
|---|
| 2026-02-24 |
ei_bpm6ca_m %>%
group_by(time) %>%
summarise(Nobs = n()) %>%
arrange(desc(time)) %>%
head(1) %>%
print_table_conditional()| time | Nobs |
|---|---|
| 2025M12 | 1200 |
ei_bpm6ca_m %>%
left_join(bop_item, by = "bop_item") %>%
group_by(bop_item, Bop_item) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
print_table_conditional()| bop_item | Bop_item | Nobs |
|---|---|---|
| CA | Current account | 22686 |
| G | Goods | 22514 |
| IN1 | Primary income | 22514 |
| S | Services | 22514 |
| IN2 | Secondary income | 22506 |
| GS | Goods and services | 22374 |
| CKA | Current plus capital account (balance = Net lending (+) / net borrowing (-)) | 22350 |
| D4P__O__F | Primary income: Investment income; Other investment | 22254 |
| D1 | Primary income: Compensation of employees | 22098 |
| D4O | Primary income: Other primary income | 22098 |
| D4P__D__F | Primary income: Investment income; Direct investment | 22098 |
| D4P__F | Primary income: Investment income | 22098 |
| D4P__P__F | Primary income: Investment income; Portfolio investment | 22098 |
| D4P__R__F | Primary income: Investment income; Reserve assets | 296 |
ei_bpm6ca_m %>%
left_join(partner, by = "partner") %>%
group_by(partner, Partner) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
print_table_conditional()| partner | Partner | Nobs |
|---|---|---|
| WRL_REST | Rest of the world | 277394 |
| EXT_EU27_2020 | Extra-EU27 (from 2020) | 8424 |
| EXT_EA20 | Extra-euro area - 20 countries (from 2023) | 4680 |
ei_bpm6ca_m %>%
left_join(stk_flow, by = "stk_flow") %>%
group_by(stk_flow, Stk_flow) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
print_table_conditional()| stk_flow | Stk_flow | Nobs |
|---|---|---|
| BAL | Balance | 97044 |
| CRE | Credit | 96744 |
| DEB | Debit | 96710 |
ei_bpm6ca_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 .}ei_bpm6ca_m %>%
group_by(time) %>%
summarise(Nobs = n()) %>%
arrange(desc(time)) %>%
print_table_conditionalei_bpm6ca_m %>%
filter(partner %in% c("WRL_REST"),
bop_item == "CA",
stk_flow == "BAL",
time %in% c("1991M01", "2001M01", "2011M01", "2021M01")) %>%
select_if(~ n_distinct(.) > 1) %>%
mutate(values = round(values, 1)) %>%
left_join(geo, by = "geo") %>%
spread(time, values) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}