| ct_top_partners | R Documentation |
Rank a country's trading partners by total trade value.
ct_top_partners(reporter, flow = "X", year = NULL, n = 20L, cache = TRUE)
reporter |
Character. Reporter country ISO3 code. |
flow |
Character. |
year |
Integer. Year to query. |
n |
Integer. Number of top partners to return. Default 20. |
cache |
Logical. Default |
A data.frame with columns: partner, partner_desc, value, share_pct, rank.
op <- options(comtrade.cache_dir = tempdir())
ct_top_partners("GBR", flow = "X", year = 2023)
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.