Labour input by activity, ISIC rev4 - SNA_TABLE7A_SNA93

Data - OECD

Code
load_data("oecd/SNA_TABLE7A_SNA93.RData")
load_data("oecd/SNA_TABLE7A_SNA93_var.RData")

Nobs - Javascript

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

Data Structure

Code
SNA_TABLE7A_SNA93_var$VAR_DESC %>%
  {if (is_html_output()) print_table(.) else .}
id description
LOCATION Country
TRANSACT Transaction
ACTIVITY Activity
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_TABLE7A_SNA93_var$TRANSACT %>%
  {if (is_html_output()) print_table(.) else .}
id label
ETOA Total employment
LAB4 7A--Labour input by activity, ISIC rev4
EEMA Employees
ESEA Self-employed
POPNC Total population, national concept

ACTIVITY

Code
SNA_TABLE7A_SNA93_var$ACTIVITY %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

MEASURE

Code
SNA_TABLE7A_SNA93_var$MEASURE %>%
  {if (is_html_output()) print_table(.) else .}
id label
PER Persons
HRS Hours

Ex 1: Manufacturing Employment

Code
SNA_TABLE7A_SNA93 %>%
  filter(TRANSACT == "ETOA",
         ACTIVITY == "VC",
         MEASURE == "PER") %>%
  arrange(LOCATION, obsTime) %>%
  left_join(SNA_TABLE7A_SNA93_var$LOCATION %>% rename(LOCATION = id), by = "LOCATION") %>%
  group_by(LOCATION_desc = label) %>%
  summarise(Year1 = first(obsTime),
            Year2 = last(obsTime),
            Value1 = first(obsValue) %>% round,
            Value2 = last(obsValue) %>% round) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}