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 23172
S Services 23172
CA Current account 22620
IN2 Secondary income 22340
IN1 Primary income 22148
GS Goods and services 11604
CKA Current plus capital account (balance = Net lending (+) / net borrowing (-)) 11178
D1 Primary income: Compensation of employees 10932
D4P__O__F Primary income: Investment income; Other investment 10881
D4P__F Primary income: Investment income 10809
D4P__D__F Primary income: Investment income; Direct investment 10785
D4P__P__F Primary income: Investment income; Portfolio investment 10785
D4O Primary income: Other primary income 10551
SD Services: Travel 10104
SC Services: Transport 9924
SE Services: Construction 9924
SF Services: Insurance and pension services 9924
SG Services: Financial services 9924
SI Services: Telecommunications, computer, and information services 9924
SL Services: Government goods and services n.i.e. 9924
SA Services: Manufacturing services on physical inputs owned by others 9900
SB Services: Maintenance and repair services n.i.e. 9717
G1 General merchandise on a balance of payments basis 9091
G2 Net exports of goods under merchanting 5501
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 292918
EXT_EU27_2020 Extra-EU27 (from 2020) 7782
EXT_EA20 Extra-euro area - 20 countries (from 2023) 4150

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 102865
CRE Credit 102427
DEB Debit 99558

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