mapHS2FCL: Umbrella function to map HS codes to FCL codes

View source: R/mapHS2FCL.R

mapHS2FCLR Documentation

Umbrella function to map HS codes to FCL codes

Description

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

Usage

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 June 1, 2024, 7:35 p.m.