Code
load_data("oecd/SNA_TABLE7A_SNA93.RData")
load_data("oecd/SNA_TABLE7A_SNA93_var.RData")
Data - OECD
load_data("oecd/SNA_TABLE7A_SNA93.RData")
load_data("oecd/SNA_TABLE7A_SNA93_var.RData")
%>%
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 .} {
$VAR_DESC %>%
SNA_TABLE7A_SNA93_varif (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 %>%
SNA_TABLE7A_SNA93_varif (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 %>%
SNA_TABLE7A_SNA93_varif (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
$MEASURE %>%
SNA_TABLE7A_SNA93_varif (is_html_output()) print_table(.) else .} {
id | label |
---|---|
PER | Persons |
HRS | Hours |
%>%
SNA_TABLE7A_SNA93 filter(TRANSACT == "ETOA",
== "VC",
ACTIVITY == "PER") %>%
MEASURE 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 .} {