| ct_services | R Documentation |
Download international services trade data from the UN Comtrade database using the EBOPS (Extended Balance of Payments Services) classification.
ct_services(
reporter,
partner = "0",
service = "TOTAL",
flow = c("X", "M"),
year = NULL,
cache = TRUE
)
reporter |
Character. Reporter country ISO3 code. |
partner |
Character. Partner country code. Default |
service |
Character. EBOPS service code. Default |
flow |
Character. Trade flow: |
year |
Integer. Year(s) to query (2000-present). Default: most recent available year. |
cache |
Logical. Cache results locally. Default |
A data.frame with columns: reporter, reporter_desc, partner, partner_desc, flow, flow_desc, service_code, service_desc, year, trade_value_usd.
op <- options(comtrade.cache_dir = tempdir())
# UK services exports to the world
ct_services("GBR", year = 2022, flow = "X")
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.