| ct_share | R Documentation |
Compute a country's share of world trade in a given commodity.
ct_share(reporter, commodity = "TOTAL", flow = "X", year = NULL, cache = TRUE)
reporter |
Character. Reporter country ISO3 code. |
commodity |
Character. Commodity code. Default |
flow |
Character. |
year |
Integer. Year to query. |
cache |
Logical. Default |
A data.frame with columns: commodity_code, reporter_value, world_value, share_pct.
op <- options(comtrade.cache_dir = tempdir())
ct_share("AUS", commodity = "2601", flow = "X", year = 2023)
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.