Learn R Programming

harmonizer (version 0.3.2)

history_matrix_pc8: History matrix of PC8 product codes

Description

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

Usage

history_matrix_pc8(b, e, progress = TRUE)

Value

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

VariableExplanation
PC8_xxxxcharacter; a specific PC8 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

progress

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

Examples

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

Run the code above in your browser using DataLab