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")

Arguments

dataset

A dataset name ("HS92").

raw_data

A boolean setting the return of raw (TRUE) or processed (FALSE) data.

time_period

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.

language

A string that indicates in which language the data will be returned. Portuguese ("pt") and English ("eng") are supported.

Value

A tibble.

Examples

if (FALSE) {
# download treated data for 2016 (takes a long time to download)
clean_baci <- load_baci(
  raw_data = FALSE,
  time_period = 2016
)
}