Code
load_data("oecd/SNA_TABLE30_var.RData")
load_data("oecd/SNA_TABLE30.RData")
load_data("us/nber_recessions.RData")
Data - OECD
load_data("oecd/SNA_TABLE30_var.RData")
load_data("oecd/SNA_TABLE30.RData")
load_data("us/nber_recessions.RData")
%>%
SNA_TABLE30 left_join(SNA_TABLE30_var %>% pluck("TRANSACT"), by = c("TRANSACT" = "id")) %>%
rename(`TRANSACT Description` = label) %>%
left_join(SNA_TABLE30_var %>% pluck("MEASURE"), by = c("MEASURE" = "id")) %>%
rename(`MEASURE Description` = label) %>%
group_by(TRANSACT, `TRANSACT Description`, MEASURE, `MEASURE Description`) %>%
summarise(nobs = n()) %>%
arrange(-nobs) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
$VAR_DESC %>%
SNA_TABLE30_varif (is_html_output()) print_table(.) else .} {
id | description |
---|---|
LOCATION | Country |
TRANSACT | Transaction |
PRODUCT | Product |
MEASURE | Measure |
TIME | Year |
OBS_VALUE | Observation Value |
TIME_FORMAT | Time Format |
OBS_STATUS | Observation Status |
UNIT | Unit |
POWERCODE | Unit multiplier |
REFERENCEPERIOD | Reference period |
%>%
SNA_TABLE30 left_join(SNA_TABLE30_var$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 .} {
%>%
SNA_TABLE30 left_join(SNA_TABLE30_var$PRODUCT, by = c("PRODUCT" = "id")) %>%
rename(`PRODUCT Description` = label) %>%
group_by(PRODUCT, `PRODUCT Description`) %>%
summarise(Nobs = n()) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
%>%
SNA_TABLE30 left_join(SNA_TABLE30_var$MEASURE, by = c("MEASURE" = "id")) %>%
rename(`MEASURE Description` = label) %>%
group_by(MEASURE, `MEASURE Description`) %>%
summarise(Nobs = n()) %>%
if (is_html_output()) datatable(., filter = 'top', rownames = F) else .} {
$TIME_FORMAT %>%
SNA_TABLE30_varif (is_html_output()) print_table(.) else .} {
id | label |
---|---|
P1Y | Annual |
P1M | Monthly |
P3M | Quarterly |
P6M | Half-yearly |
P1D | Daily |