maxHSLength: Prepares for numerical comparison vector of hs codes from...

View source: R/maxHSLength.R

maxHSLengthR Documentation

Prepares for numerical comparison vector of hs codes from trade dataset with hs codes range from mapping table.

Description

Prepares for numerical comparison vector of hs codes from trade dataset with hs codes range from mapping table.

Usage

maxHSLength(uniqhs, mapdataset)

Arguments

uniqhs

Data frame with columns 'reporter', 'flow' and 'hs' containing unique combinations from a trade data set.

mapdataset

Data frame with mapping table containing at least columns area, flow, fromcode, tocode

Value

A data frame with columns 'reporter', 'flow' and 'maxhslength'.


SWS-Methodology/faoswsTrade documentation built on June 1, 2024, 7:35 p.m.