Learn R Programming

⚠️There's a newer version (5.0.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

Version

Install

install.packages('tradestatistics')

Monthly Downloads

239

Version

1.1

License

GPL-3

Maintainer

Mauricio S

Last Published

September 18th, 2020

Functions in tradestatistics (1.1)

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