Loads data on all products imported to or exported from Brazil.
load_br_trade(dataset, raw_data = FALSE, time_period, language = "eng")A dataset name ("export_mun", "import_mun", "export_prod" or "import_prod").
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 exports data by municipality from 2020 to 2021
data <- load_br_trade(
dataset = "export_mun",
raw_data = FALSE,
time_period = 2020:2021,
language = "eng"
)
# download treated imports data by municipality from 2020 to 2021
data <- load_br_trade(
dataset = "import_mun",
raw_data = FALSE,
time_period = 2020:2021,
language = "eng"
)
}