RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (4.5.0) of this package.
Take me there.
tradestatistics (version 1.1)
Open Trade Statistics API Wrapper and Utility Program
Description
Access 'Open Trade Statistics' API from R to download international trade data.
Copy Link
Copy
Link to current version
Version
Version
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
Down Chevron
Install
install.packages('tradestatistics')
Monthly Downloads
360
Version
1.1
License
GPL-3
Maintainer
Mauricio S
Last Published
September 18th, 2020
Functions in tradestatistics (1.1)
Search functions
ots_product_code
String matching of official product names and Harmonized System (HS) codes according to the United Nations nomenclature
ots_cache
Caching wrapper to reduce API calls (internal)
ots_countries
A table of official country names, ISO-3 codes and other metadata
tradestatistics-package
tradestatistics: Open Trade Statistics API Wrapper and Utility Program
ots_tables
Available tables in the API
ots_sections_shortnames
A table of sections codes and shortened names associated to products
ots_products_shortnames
A table of unofficial shortened product names
ots_sections_names
A table of sections codes and official names associated to products
ots_read_from_api
Reads data from the API (internal function)
ots_create_tidy_data
Downloads and processes the data from the API to return a human-readable tibble
ots_products
A table of official product names from the Harmonized System (HS)
ots_sections
A table of sections codes, names and colours associated to products
ots_product_section
String matching of official product section names and product section codes
ots_country_code
String matching of official country names and ISO-3 codes according to the United Nations nomenclature
ots_create_tidy_data_unmemoised
Downloads and processes the data from the API to return a human-readable tibble (unmemoised, internal)
ots_create_tidy_data_memoised
Downloads and processes the data from the API to return a human-readable tibble (memoised, internal)
ots_sections_colors
A table of sections codes and hex colours associated to products
ots_groups
A table of group codes and names associated to products
ots_inflation
A table with world weigthed mean inflation since 1962
ots_inflation_adjustment
Expresses tidy data from the API in dollars of a reference year