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 23394
S Services 23394
CA Current account 22842
IN2 Secondary income 22562
IN1 Primary income 22370
GS Goods and services 11715
CKA Current plus capital account (balance = Net lending (+) / net borrowing (-)) 11286
D1 Primary income: Compensation of employees 11043
D4P__O__F Primary income: Investment income; Other investment 10992
D4P__F Primary income: Investment income 10920
D4P__D__F Primary income: Investment income; Direct investment 10896
D4P__P__F Primary income: Investment income; Portfolio investment 10896
D4O Primary income: Other primary income 10658
SD Services: Travel 10215
SC Services: Transport 10035
SE Services: Construction 10035
SF Services: Insurance and pension services 10035
SG Services: Financial services 10035
SI Services: Telecommunications, computer, and information services 10035
SL Services: Government goods and services n.i.e. 10035
SA Services: Manufacturing services on physical inputs owned by others 10011
SB Services: Maintenance and repair services n.i.e. 9828
G1 General merchandise on a balance of payments basis 9202
G2 Net exports of goods under merchanting 5567
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 295917
EXT_EU27_2020 Extra-EU27 (from 2020) 7867
EXT_EA20 Extra-euro area - 20 countries (from 2023) 4233

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 103930
CRE Credit 103496
DEB Debit 100591

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