System of National Accounts - NAMAIN_IDC_N

Data - IMF

Structure

Code
# This dataflow's columns (FREQ/REF_AREA/ACCOUNTING_ENTRY/STO/...) don't
# match an "INDICATOR"-style series code -- it's an ESA transaction-based
# national accounts structure instead. The chunk that used to be here
# filtered on a literal `INDICATOR == "NGDP_R_XDC"` column that doesn't
# exist in this data; replaced with a generic structure overview until the
# intended transaction/sector combination for "GDP, real, domestic
# currency" is confirmed.
NAMAIN_IDC_N %>%
  group_by(REF_AREA, STO, FREQ) %>%
  summarise(Nobs = n(),
            date1 = first(TIME_PERIOD),
            date2 = last(TIME_PERIOD)) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}