Code
load_data("oecd/SNA_TABLE7A_ARCHIVE_var.RData")
load_data("oecd/SNA_TABLE7A_ARCHIVE.RData")
Data - OECD
load_data("oecd/SNA_TABLE7A_ARCHIVE_var.RData")
load_data("oecd/SNA_TABLE7A_ARCHIVE.RData")
%>%
SNA_TABLE7A_ARCHIVE left_join(SNA_TABLE7A_ARCHIVE_var %>% pluck("TRANSACT"), by = c("TRANSACT" = "id")) %>%
rename(`TRANSACT Description` = label) %>%
left_join(SNA_TABLE7A_ARCHIVE_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_ARCHIVE_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_ARCHIVE_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_ARCHIVE_varif (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
$MEASURE %>%
SNA_TABLE7A_ARCHIVE_varif (is_html_output()) print_table(.) else .} {
id | label |
---|---|
PER | Persons |
FTE | Full-time equivalents |
JOB | Jobs |
HRS | Hours |
%>%
SNA_TABLE7A_ARCHIVE filter(TRANSACT == "ETOA",
== "VC",
ACTIVITY == "PER") %>%
MEASURE arrange(LOCATION, obsTime) %>%
left_join(SNA_TABLE7A_ARCHIVE_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 .} {