Rdocumentation
powered by
Learn R Programming
tradestatistics (version 6.0.0)
Open Trade Statistics API Wrapper and Utility Program
Description
Access 'Open Trade Statistics' API from R to download international trade data.
Copy Link
Link to current version
Version
Version
6.0.0
5.0.0
4.5.0
4.4.0
3.0.2
1.1
1.0
0.2.7
0.2.5
0.2.4
0.2.3
0.2
0.1
Install
install.packages('tradestatistics')
Monthly Downloads
336
Version
6.0.0
License
Apache License (>= 2)
Maintainer
Mauricio Vargas Sepulveda
Last Published
September 22nd, 2025
Functions in tradestatistics (6.0.0)
Search all functions
ots_gdp_deflator
GDP Deflator
ots_create_tidy_data
Downloads and processes the data from the API to return a human-readable tibble
ots_countries
OTS Countries
ots_commodities
OTS Commodities
ots_cache
Caching wrapper to reduce API calls (internal)
ots_create_tidy_data_unmemoised
Downloads and processes the data from the API to return a human-readable tibble (unmemoised, internal)
ots_country_code
String matching of official country names and ISO-3 codes according to the United Nations nomenclature
ots_commodities_short
OTS Commodities Short
ots_read_from_api
Reads data from the API (internal function)
ots_commodity_code
String matching of official commodity/section names and Harmonized System (HS) codes according to the United Nations nomenclature
ots_gdp_deflator_adjustment
Expresses tidy data from the API in dollars of a reference year
ots_create_tidy_data_memoised
Downloads and processes the data from the API to return a human-readable tibble (memoised, internal)
tradestatistics-package
tradestatistics: Open Trade Statistics API Wrapper and Utility Program
ots_tables
OTS Tables