library("ieeecomtrade")
library("devtools")

This is to document how the keating_1999 comtrade object is constructed and put into the package's data.

First, let's create the constituent elements:

config <- ct_example("keating_1999.CFG") %>% ct_read_config()
data <- ct_example("keating_1999.DAT") %>% ct_read_data_config(config)

Next, construct the comtrade object:

keating_1999 <- comtrade(config = config, data = data)

print(keating_1999)

Finally, write to package-data:

use_data(keating_1999, overwrite = TRUE)


ijlyttle/ieeecomtrade documentation built on May 18, 2019, 3:41 a.m.