ct_available: Check Data Availability

View source: R/reference.R

ct_availableR Documentation

Check Data Availability

Description

Check which years and classifications have data available for a given reporter country.

Usage

ct_available(reporter, cache = TRUE)

Arguments

reporter

Character. Reporter country ISO3 code.

cache

Logical. Cache results. Default TRUE.

Value

A data.frame with columns: year, classification, type (C/S), frequency (A/M).

Examples


op <- options(comtrade.cache_dir = tempdir())
avail <- tryCatch(ct_available("GBR"), error = function(e) NULL)
if (!is.null(avail)) head(avail)
options(op)


comtrade documentation built on Dec. 3, 2026, 1:07 a.m.