Disposable income and net lending - net borrowing - SNA_TABLE2_SNA93

Data - OECD

Code
load_data("oecd/SNA_TABLE2_SNA93_var.RData")
load_data("oecd/SNA_TABLE2_SNA93.RData")

Layout

  • OECD Website. html

Nobs - Javascript

Code
SNA_TABLE2_SNA93 %>%
  left_join(SNA_TABLE2_SNA93_var %>% pluck("TRANSACT"), by = c("TRANSACT" = "id")) %>%
  rename(`TRANSACT Description` = label) %>%
  group_by(TRANSACT, `TRANSACT Description`, MEASURE) %>%
  summarise(nobs = n()) %>%
  arrange(-nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

Data Structure

Code
SNA_TABLE2_SNA93_var$VAR_DESC %>%
  {if (is_html_output()) print_table(.) else .}
id description
LOCATION Country
TRANSACT Transaction
MEASURE Measure
TIME Year
OBS_VALUE Observation Value
TIME_FORMAT Time Format
OBS_STATUS Observation Status
UNIT Unit
POWERCODE Unit multiplier
REFERENCEPERIOD Reference period

TRANSACT

Code
SNA_TABLE2_SNA93 %>%
  left_join(SNA_TABLE2_SNA93_var %>% pluck("TRANSACT"), by = c("TRANSACT" = "id")) %>%
  rename(`TRANSACT Description` = label) %>%
  group_by(TRANSACT, `TRANSACT Description`) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

MEASURE

Code
SNA_TABLE2_SNA93 %>%
  left_join(SNA_TABLE2_SNA93_var %>% pluck("MEASURE"), by = c("MEASURE" = "id")) %>%
  rename(`MEASURE Description` = label) %>%
  group_by(MEASURE, `MEASURE Description`) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

REFERENCEPERIOD

Code
SNA_TABLE2_SNA93 %>%
  left_join(SNA_TABLE2_SNA93_var %>% pluck("REFERENCEPERIOD"), by = c("REFERENCEPERIOD" = "id")) %>%
  rename(`REFERENCEPERIOD Description` = label) %>%
  group_by(REFERENCEPERIOD, `REFERENCEPERIOD Description`) %>%
  summarise(Nobs = n()) %>%
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}