update_cn_code_changes: Prepare the code changes table Code changes are obtained from...

Description Usage Arguments Value Examples

View source: R/product_code_changes.R

Description

Prepare the code changes table Code changes are obtained from EUROSTAT Ramon https://ec.europa.eu/eurostat/ramon/relations/index.cfm?TargetUrl=LST_REL The Excel file is simply saved to a csv by hand.

Usage

1
2
3
4
update_cn_code_changes(
  csv_file = "~/downloads/CN_2019_update_of_codes.csv",
  rdata_file = "data/cn_code_changes.rda"
)

Arguments

csv_file

character path to the csv file from EUROSTAT Ramon where code changes are given

packagefodler

character path to the rds file where to save the updated data. Defaults inside the package.

Value

a data frame of this form origin_code destination_code orig_end_year dest_start_year <chr> <chr> <dbl> <dbl> 1 02012011 02012021 1988 1989 2 02012011 02012029 1988 1989

Examples

1
2
3
4
5
## Not run: 
# Update the codes while developing the package
update_code_changes()

## End(Not run)

stix-global/eutradeflows documentation built on Nov. 13, 2020, 9:23 p.m.