| ct_commodities | R Documentation |
Search the HS (Harmonized System) commodity classification for codes matching a keyword or code pattern. Uses a built-in table of 96 two-digit HS chapters with descriptions.
ct_commodities(query = NULL, level = NULL)
query |
Character. Search term (matched against commodity
descriptions) or a partial HS code (e.g., |
level |
Integer. HS digit level to return. Currently only level 2
is available from the built-in table. Default |
A data.frame with columns:
HS 2-digit chapter code
Chapter description
Digit level (always 2 for built-in table)
Parent code (NA for 2-digit chapters)
# Search for petroleum-related codes
ct_commodities("petroleum")
# List all 2-digit HS chapters
ct_commodities()
# Find codes starting with "27" (mineral fuels)
ct_commodities("27")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.