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 22710
S Services 22710
CA Current account 22158
IN2 Secondary income 21878
IN1 Primary income 21686
GS Goods and services 11370
CKA Current plus capital account (balance = Net lending (+) / net borrowing (-)) 10950
D1 Primary income: Compensation of employees 10698
D4P__O__F Primary income: Investment income; Other investment 10650
D4P__F Primary income: Investment income 10578
D4P__D__F Primary income: Investment income; Direct investment 10554
D4P__P__F Primary income: Investment income; Portfolio investment 10554
D4O Primary income: Other primary income 10325
SD Services: Travel 9870
SC Services: Transport 9690
SE Services: Construction 9690
SF Services: Insurance and pension services 9690
SG Services: Financial services 9690
SI Services: Telecommunications, computer, and information services 9690
SL Services: Government goods and services n.i.e. 9690
SA Services: Manufacturing services on physical inputs owned by others 9666
SB Services: Maintenance and repair services n.i.e. 9483
G1 General merchandise on a balance of payments basis 8857
G2 Net exports of goods under merchanting 5361
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 286618
EXT_EU27_2020 Extra-EU27 (from 2020) 7612
EXT_EA20 Extra-euro area - 20 countries (from 2023) 3984

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 100633
CRE Credit 100187
DEB Debit 97394

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 .}