# NOT RUN {
# Run countries_list() to display the full list of countries
# For the example Chile is "chl" and China is "chn"
# Download trade between Chile and China
# Years 2010-2016 (HS92 4 characters)
# getdata_interval("chl", "chn", 2010, 2016)
# getdata_interval("chl", "chn", 2010, 2016, 1, 1) # equivalent to last command
# Download trade between Chile and China
# Years 2010, 2012 and 2014 from OEC's API (HS92 4 characters)
# getdata_interval("chl", "chn", 2010, 2014, 1, 2)
# Download trade between Chile and China
# Years 2010, 2012 and 2014 from OEC's API (SITC rev2 4 characters)
# getdata_interval("chl", "chn", 2010, 2014, 2, 2)
# Download trade between Chile and China
# Years 2010, 2012 and 2014 from OEC's API (HS92 6 characters)
# getdata_interval("chl", "chn", 2010, 2014, 3, 2)
# }
Run the code above in your browser using DataLab