history_martix_cn8: History matrix of CN8 product codes

history_matrix_cn8R Documentation

History matrix of CN8 product codes

Description

Provides a dataframe which contains all CN8 product codes and their history in a given time period.

Usage

history_matrix_cn8(b, e, c1 = 1988, c2 = 2022,
                   progress = TRUE)

Arguments

b

first year of interest

e

last year of interest

c1

first year of the concordance list

c2

last year of the concordance list

progress

logical, determines whether progress is printed in console or not.

Value

A data frame that contains all CN8 product codes and their history over time for the demanded time period. This dataset is the basis for the main function harmonize_cn8() and can be obtained therewith as well. The following table offers an overview of all provided variables.

Variable Explanation
CN8_xxxx character; a specific CN8 code in a given year
flag numeric; integer from 0 to 3; 1 indicates that this code remained the same in notation over the whole time period but was split or merged in addition; 2 indicates that this code is either new or was dropped during the period of interest
flagyear numeric; indicates the first year in which the flag was set

Examples


history <- history_matrix_cn8(b = 2008, e = 2010)


harmonizer documentation built on Feb. 16, 2023, 6:18 p.m.