load_pam {datazoom.amazonia}R Documentation

PAM - Municipal Agricultural Production

Description

Loads information on the temporary and permanent crops of the Country that are characterized not only by their great economic importance in the export agenda, but also by their social relevance, since its components are on the Brazilian table (IBGE). Survey is done at the municipal level and data is available from 1974 to 2020 for most datasets. See https://www.ibge.gov.br/en/statistics/economic/agriculture-forestry-and-fishing/16773-municipal-agricultural-production-temporary-and-permanent-crops.html?=&t=o-que-e

Usage

load_pam(dataset = NULL, raw_data, geo_level, time_period, language = "eng")

Arguments

dataset

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)

raw_data

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

geo_level

A string that defines the geographic level of the data. Can be one of "country", "state" or "municipality". See documentation of sidrar.

time_period

A numeric indicating what years will the data be loaded in the format YYYY. Can be a sequence of numbers such as 2010:2012.

language

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

Value

A tibble consisting of geographic units that present positive values for any of the variables in the dataset.

Examples

## Not run: 
# download state raw data from 2012 for all crops
pam_all_crops <- load_pam(
  dataset = "all_crops",
  raw_data = TRUE,
  geo_level = "state",
  time_period = 2012
)

## End(Not run)

[Package datazoom.amazonia version 0.3.0 Index]