Learn R Programming

harmonizer (version 0.3.2)

history_matrix_cn8: 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)

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.

VariableExplanation
CN8_xxxxcharacter; a specific CN8 code in a given year
flagnumeric; 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
flagyearnumeric; indicates the first year in which the flag was set

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.

Examples

Run this code
# \donttest{
history <- history_matrix_cn8(b = 2008, e = 2010)
# }

Run the code above in your browser using DataLab