Financial accounts - consolidated - SNA 2008 - SNA_TABLE610R

Data - OECD


Code
load_data("oecd/SNA_TABLE610R_var.RData")
load_data("oecd/SNA_TABLE610R.RData")

Nobs - Javascript

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

Data Structure

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

TRANSACT

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

SECTOR

Code
SNA_TABLE610R %>%
  left_join(SNA_TABLE610R_var %>% pluck("SECTOR"), by = c("SECTOR" = "id")) %>%
  rename(SECTOR_desc = label) %>%
  group_by(SECTOR, SECTOR_desc) %>%
  summarise(Nobs = n()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

MEASURE

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