Current account - quarterly data - ei_bpm6ca_q

Data - Eurostat

bop_item

Code
ei_bpm6ca_q %>%
  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
G Goods 22233
S Services 22233
CA Current account 21657
IN2 Secondary income 21401
IN1 Primary income 21209
GS Goods and services 11133
CKA Current plus capital account (balance = Net lending (+) / net borrowing (-)) 10702
D1 Primary income: Compensation of employees 10461
D4P__O__F Primary income: Investment income; Other investment 10413
D4P__F Primary income: Investment income 10341
D4P__D__F Primary income: Investment income; Direct investment 10317
D4P__P__F Primary income: Investment income; Portfolio investment 10317
D4O Primary income: Other primary income 10075
SD Services: Travel 9633
SC Services: Transport 9453
SE Services: Construction 9453
SF Services: Insurance and pension services 9453
SG Services: Financial services 9453
SI Services: Telecommunications, computer, and information services 9453
SL Services: Government goods and services n.i.e. 9453
SA Services: Manufacturing services on physical inputs owned by others 9414
SB Services: Maintenance and repair services n.i.e. 9246
G1 General merchandise on a balance of payments basis 8620
G2 Net exports of goods under merchanting 5180
D4P__R__F Primary income: Investment income; Reserve assets 16

partner

Code
ei_bpm6ca_q %>%
  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 280059
EXT_EU27_2020 Extra-EU27 (from 2020) 7442
EXT_EA20 Extra-euro area - 20 countries (from 2023) 3818

stk_flow

Code
ei_bpm6ca_q %>%
  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 98321
CRE Credit 97853
DEB Debit 95145

geo

Code
ei_bpm6ca_q %>%
  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
ei_bpm6ca_q %>%
  group_by(time) %>%
  summarise(Nobs = n()) %>%
  arrange(desc(time)) %>%
  print_table_conditional

Net Exports

Table

Code
ei_bpm6ca_q %>%
  filter(partner %in% c("WRL_REST"),
         bop_item == "CA",
         stk_flow == "BAL",
         time %in% c("1991Q3", "2001Q3", "2011Q3", "2021Q3")) %>%
  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 .}