R/ibama.R
load_ibama.RdLoads information on environmental fines in the Amazon region
load_ibama(dataset, raw_data = FALSE, states = "all", language = "eng")A dataset name ("embargoed_areas", "distributed_fines", or "collected_fines")
A boolean setting the return of raw (TRUE) or processed (FALSE) data.
A string specifying for which states to download the data. It is "all" by default, but can be a single state such as "AC" or any vector such as c("AC", "AM"). Does not apply to the "embargoed_areas" dataset.
A string that indicates in which language the data will be returned. Currently, only Portuguese ("pt") and English ("eng") are supported.
A tibble.
if (FALSE) { # interactive()
### DO NOT RUN ###
# download treated embargoed areas data in english
data <- load_ibama(
dataset = "embargoed_areas",
raw_data = FALSE,
language = "eng"
)
# download treated collected fines data from Bahia
data <- load_ibama(
dataset = "collected_fines",
raw_data = FALSE,
states = "BA",
language = "pt"
)
}