Loads foreign trade data from the Brazilian government from 1986 to the present

load_comex(
  year,
  ncm = FALSE,
  sh4 = FALSE,
  exp = FALSE,
  imp = FALSE,
  language = "pt"
)

Arguments

year

A vector indicating what years will the data be loaded

ncm

A boolean that when set to TRUE returns data frame from NCM system, default is FALSE

sh4

A boolean that when set to TRUE returns data frame from SH4 system, default is FALSE

exp

A boolean that when set to TRUE returns export data, default is FALSE

imp

A boolean that when set to TRUE returns import data, default is FALSE

language

A string that indicates in which language the data will be returned. The default is "pt", so your data will be returned in Portuguese. Currently, only Portuguese and English are supported.

Value

A list of data frames

Author

DataZoom, Department of Economics, Pontifical Catholic University of Rio de Janeiro

Examples

if (FALSE) load_comex(c(2000,2001,2002), ncm = TRUE, exp = TRUE) if (FALSE) { load_comex(c(2000, 2001, 2002), ncm = TRUE, exp = TRUE) load_comex(c(1997, 2004, 2008), sh4 = TRUE, imp = TRUE, language = "eng") }