load_br_trade {datazoom.amazonia} | R Documentation |
Loads information on both imports and exports data. Data is available from 1997 to 2021 for most datasets. See https://www.gov.br/produtividade-e-comercio-exterior/pt-br/assuntos/comercio-exterior/estatisticas/base-de-dados-bruta/.
load_br_trade(dataset = NULL, raw_data, time_period, language = "eng")
dataset |
A dataset name ("comex_export_mun", "comex_import_mun", "comex_export_prod" or "comex_import_prod"). |
raw_data |
A |
time_period |
A |
language |
A |
A tibble
consisting of imports or exports data.
## Not run:
# download treated exports data by municipality from 1997 to 2021
exp_mun <- load_br_trade(
dataset = "comex_export_mun",
raw_data = FALSE, time_period = 1997:2021
)
# download raw imports data by municipality from 1997 to 2021
raw_imp_mun <- load_br_trade(
dataset = "comex_import_mun",
raw_data = TRUE, time_period = 1997:2021
)
# download treated imports data by ncm from 1997 to 2021
imp_prod <- load_br_trade(
dataset = "comex_import_prod",
raw_data = FALSE, time_period = 1997:2021
)
## End(Not run)