Package: comtrade 0.1.1
comtrade: Access and Analyse UN Comtrade International Trade Data
Download and analyse international merchandise and services trade data from the United Nations Comtrade database <https://comtradeplus.un.org/>. Retrieve bilateral trade flows, compute trade analytics (revealed comparative advantage, trade concentration, trade balance), and convert between commodity classifications (Harmonised System 'HS', Standard International Trade Classification 'SITC', Broad Economic Categories 'BEC'). Covers 200+ reporter countries, 60+ years of goods trade data (1962-present), and services trade via Extended Balance of Payments Services ('EBOPS'). Works without registration for basic queries. A free Application Programming Interface ('API') key from <https://comtradedeveloper.un.org/> unlocks full access.
Authors:
comtrade_0.1.1.tar.gz
comtrade_0.1.1.zip(r-4.7)comtrade_0.1.1.zip(r-4.6)comtrade_0.1.1.zip(r-4.5)
comtrade_0.1.1.tgz(r-4.6-any)comtrade_0.1.1.tgz(r-4.5-any)
comtrade_0.1.1.tar.gz(r-4.7-any)comtrade_0.1.1.tar.gz(r-4.6-any)
comtrade_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
comtrade/json (API)
NEWS
| # Install 'comtrade' in R: |
| install.packages('comtrade', repos = c('https://charlescoverdale.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/charlescoverdale/comtrade/issues
Pkgdown/docs site:https://charlescoverdale.github.io
Last updated from:59eade5058. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 95 | ||
| source / vignettes | OK | 178 | ||
| linux-release-x86_64 | OK | 116 | ||
| macos-release-arm64 | OK | 126 | ||
| macos-oldrel-arm64 | OK | 89 | ||
| windows-devel | OK | 89 | ||
| windows-release | OK | 90 | ||
| windows-oldrel | OK | 62 | ||
| wasm-release | OK | 103 |
Exports:ct_availablect_balancect_cache_clearct_commoditiesct_comparect_concordancect_growthct_hhict_rcact_reportersct_servicesct_set_keyct_sharect_top_partnersct_top_productsct_trade
Dependencies:askpassclicurlgluehttr2lifecyclemagrittropensslR6rappdirsrlangsysvctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Check Data Availability | ct_available |
| Trade Balance by Partner | ct_balance |
| Clear the Comtrade Cache | ct_cache_clear |
| Search Commodity Codes | ct_commodities |
| Compare Countries | ct_compare |
| Convert Between Trade Classifications | ct_concordance |
| Trade Growth Over Time | ct_growth |
| Trade Concentration Index (HHI) | ct_hhi |
| Revealed Comparative Advantage (Balassa Index) | ct_rca |
| List Reporter Countries | ct_reporters |
| Get Services Trade Data | ct_services |
| Set the Comtrade API Key | ct_set_key |
| World Trade Share | ct_share |
| Top Trading Partners | ct_top_partners |
| Top Export or Import Products | ct_top_products |
| Get Bilateral Trade Data | ct_trade |
