Top 20 ports - gross weight of goods handled in each port, by direction - mar_mg_aa_pwhd

Data - Eurostat

direct

Code
mar_mg_aa_pwhd %>%
  left_join(direct, by = "direct") %>%
  group_by(direct, Direct) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) print_table(.) else .}
direct Direct Nobs
IN Inwards 1104
OUT Outwards 1104
TOTAL Total 1104

unit

Code
mar_mg_aa_pwhd %>%
  left_join(unit, by = "unit") %>%
  group_by(unit, Unit) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) print_table(.) else .}
unit Unit Nobs
THS_T Thousand tonnes 1707
RT_PRE Growth rate on previous period (t/t-1) 1605

rep_mar

Code
mar_mg_aa_pwhd %>%
  left_join(rep_mar, by = "rep_mar") %>%
  group_by(rep_mar, Rep_mar) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  print_table_conditional()

time

Code
mar_mg_aa_pwhd %>%
  group_by(time) %>%
  summarise(Nobs = n()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

Conteneurs

Table

Code
mar_mg_aa_pwhd %>%
  filter(unit == "THS_T",
         time == "2019") %>%
  left_join(rep_mar, by = "rep_mar") %>%
  left_join(direct, by = "direct") %>%
  select(rep_mar, Rep_mar, Direct, values) %>%
  spread(Direct, values) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}