mapHS2FCL: Umbrella function to map HS codes to FCL codes

Description Usage Arguments Value

View source: R/mapHS2FCL.R

Description

The function takes trade data set with mapping table and finds corresponding FCL codes for specific reporter, flow and HS code combinations.

Usage

1
mapHS2FCL(tradedata, maptable, hs6maptable, year = NULL, parallel = FALSE)

Arguments

tradedata

Trade data frame. Columns reporter, flow and hs are expected.

maptable

Mapping table.

hs6maptable

HS6 mapping table.

year

Integer, year the trade module run on.

parallel

Logical, should multicore backend be used. False by default.

Value

Data frame with unique combinations reporter/flow/hs/fcl.


SWS-Methodology/faoswsTrade documentation built on May 4, 2018, 1:23 p.m.