Returns Harmonized System tables. Use the level parameter to
specify the desired aggregation level.
Usage
comex_hs(level = NULL, language = "en", verbose = FALSE)
Arguments
- level
Aggregation level (optional). If NULL, returns all levels.
Options: "section", "chapter" (HS2), "heading" (HS4), "subheading" (HS6)
- language
Language: "pt", "en", or "es". Default: "en"
- verbose
Logical. If TRUE, display progress messages. Default: FALSE
Value
A tibble with Harmonized System codes and descriptions
Details
The Harmonized System (HS) is an international product nomenclature
developed by the World Customs Organization (WCO). It is organized
into sections, chapters, headings, and subheadings.
section: Section - Broadest grouping (21 sections)
chapter: Chapter (HS2) - 2 digits, ~97 chapters
heading: Heading (HS4) - 4 digits
subheading: Subheading (HS6) - 6 digits
Examples
if (FALSE) { # \dontrun{
# All HS levels
comex_hs()
# Sections only
comex_hs(level = "section")
# Chapters (HS2)
comex_hs(level = "chapter")
# Headings (HS4)
comex_hs(level = "heading")
# Subheadings (HS6)
comex_hs(level = "subheading")
} # }