| ct_growth | R Documentation |
Compute year-on-year and cumulative trade growth for a bilateral flow.
ct_growth(
reporter,
partner = "0",
commodity = "TOTAL",
flow = "X",
years = NULL,
cache = TRUE
)
reporter |
Character. Reporter country ISO3 code. |
partner |
Character. Partner country code. Default |
commodity |
Character. Commodity code. Default |
flow |
Character. |
years |
Integer vector. Years to query (at least 2). |
cache |
Logical. Default |
A data.frame with columns: year, value, growth_yoy, growth_cumulative, index_100.
op <- options(comtrade.cache_dir = tempdir())
ct_growth("GBR", flow = "X", years = 2018:2023)
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.