Created
November 22, 2019 17:45
-
-
Save RandomCriticalAnalysis/80cada0ec3626e96eb483d5be4c8b047 to your computer and use it in GitHub Desktop.
Quick examples for helper OECD helper functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source("oecd_helper_library.R") | |
# example of how to fetch parameter info from within R | |
sna1_filter_short=show_filter_options('SNA_TABLE1',showLong=F) | |
sna1_filter_long=show_filter_options('SNA_TABLE1',showLong=T) | |
# Get AIC and GDP for Germany and USA | |
sna_basic_example=auto_fetch_oecd( | |
'SNA_TABLE1', | |
list( | |
location=c('USA','DEU','FRA','CAN'), # countries by iso3c (common across oecd.stat) | |
measure='HVPVOB', # Per head, constant prices, constant PPPs, OECD base year | |
TRANSACT=c('P41','B1_GE') # AIC and GDP (expenditure method) | |
), | |
start_time=2000, | |
end_time=2015 | |
) | |
naag_options_long=show_filter_options('NAAG',showLong=T) | |
# Get general government debt as % GDP from National Accoutns at a glance (NAAG) | |
naag_example=auto_fetch_oecd( | |
'NAAG', | |
list( | |
indicator=c( | |
'DBTS13GDP', | |
'DBTADJS13GDP' | |
) | |
), | |
start_time=1970, | |
end_time=2018 | |
) | |
# Get AIC and GDP for Germany and USA | |
bli_example=auto_fetch_oecd( | |
'BLI', | |
list() # fetch everything | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment