| ct_available | R Documentation |
Check which years and classifications have data available for a given reporter country.
ct_available(reporter, cache = TRUE)
reporter |
Character. Reporter country ISO3 code. |
cache |
Logical. Cache results. Default |
A data.frame with columns: year, classification, type (C/S), frequency (A/M).
op <- options(comtrade.cache_dir = tempdir())
avail <- tryCatch(ct_available("GBR"), error = function(e) NULL)
if (!is.null(avail)) head(avail)
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.