Loads disaggregated data on bilateral trade flows for more than 5000 products and 200 countries.
load_baci(dataset = "HS92", raw_data = FALSE, time_period, language = "eng")A dataset name ("HS92").
A boolean setting the return of raw (TRUE) or processed (FALSE) data.
A numeric indicating for which years the data will be loaded, in the format YYYY. Can be any vector of numbers, such as 2010:2012.
A string that indicates in which language the data will be returned. Portuguese ("pt") and English ("eng") are supported.
A tibble.
if (FALSE) { # interactive()
### DO NOT RUN ###
# download treated trade data for 2016 (HS92 classification)
trade_2016 <- load_baci(
dataset = "HS92",
raw_data = FALSE,
time_period = 2016,
language = "eng"
)
}