ct_concordance: Convert Between Trade Classifications

View source: R/concordance.R

ct_concordanceR Documentation

Convert Between Trade Classifications

Description

Convert commodity codes between HS (Harmonized System), SITC, and BEC classifications. Uses a built-in concordance table covering the most common 2-digit HS chapters mapped to SITC sections and BEC categories.

Usage

ct_concordance(code, from = "HS", to = "SITC")

Arguments

code

Character. The commodity code(s) to convert.

from

Character. Source classification: "HS", "SITC", or "BEC".

to

Character. Target classification: "HS", "SITC", or "BEC".

Details

For detailed 4/6-digit concordances, see the concordance R package on CRAN.

Value

A data.frame with columns: from_code, from_desc, to_code, to_desc.

Examples

# Convert HS chapter 27 (mineral fuels) to SITC
ct_concordance("27", from = "HS", to = "SITC")

# Convert SITC section 0 (food) to HS
ct_concordance("0", from = "SITC", to = "HS")

comtrade documentation built on April 13, 2026, 5:07 p.m.