load_pam.Rd
Loads information on the quantity, value and area of temporary and permanent crops cultivated.
load_pam(dataset, raw_data = FALSE, geo_level, time_period, language = "eng")
A dataset name ("all_crops", "permanent_crops", "temporary_crops" or many individual crop possibilities (see vignette(load_pam)
)). You can also use SIDRA codes (see https://sidra.ibge.gov.br/pesquisa/pam/tabelas)
A boolean
setting the return of raw (TRUE
) or processed (FALSE
) data.
A string
that defines the geographic level of the data. Can be one of "country", "state" or "municipality".
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
consisting of geographic units that present positive values for any of the variables in the dataset.
if (FALSE) {
# download treated data at the state level from 2010 to 2011 for all crops
data <- load_pam(
dataset = "all_crops",
raw_data = FALSE,
geo_level = "state",
time_period = 2010:2011,
language = "eng"
)
}