Description Usage Arguments Details Value
Prepares for numerical comparison vector of hs codes from trade dataset with hs codes range from mapping table.
1 | alignHSLength(hs, mapdataset)
|
hs |
Vector of original hs codes from trade data set. |
mapdataset |
Data frame with mapping table containing at least columns area, flow, fromcode, tocode |
Alignes length of hs codes in three places: vector from trade dataset, fromcode and tocode columns of mapping dataset. Maximum length is determined and all shorter codes are extended on right-hand side: trade data hs code and mapping fromcode are extended by 0, mapping tocode is extended by 9.
A list with two components: * hs - vector with extended hs codes * mapdataset - data frame with extended fromcode and to code columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.