PPM.Rmd
Data on livestock inventories (e.g:cattle, pigs and hogs) in Brazilian Municipalities, as well as amount and value of animal products (e.g:output of milk, hen eggs, quail eggs, honey).
The periodicity of the survey is annual. The geographic coverage is national, with results released for Brazil, Major Regions, Federation Units, Mesoregions, Microregions and Municipalities.
The data available has a yearly frequency and is available from 1974 to the present. More information can be found in this link.
Options:
dataset: there are five possible choices: *
"ppm_livestock_inventory"
*
"ppm_sheep_farming"
*
"ppm_animal_orig_production"
*
"ppm_cow_farming"
* "ppm_aquaculture"
raw_data: there are two options:
TRUE
: if you want the data as it is originally.FALSE
: if you want the treated version of the
data.geo_level: "country"
,
"region"
, "state"
, or
"municipality"
time_period: picks the years for which the data will be downloaded
language: you can choose between Portuguese
("pt")
and English ("eng")
Examples:
# Download treated data (raw_data = FALSE) about aquaculture (dataset = "ppm_aquaculture")
# from 2013 to 2015 (time_period = 2013:2015) in english
# with the level of aggregation being the country (geo_level = "country").
data <- load_ppm(dataset = "ppm_aquaculture",
raw_data = FALSE,
geo_level = "country",
time_period = 2013:2015)
# Download raw data about sheep farming by state from 1980 to 1995 in portuguese (language = "pt")
data <- load_ppm(dataset = "ppm_sheep_farming",
raw_data = TRUE,
geo_level = "state",
time_period = 1980:1995,
language = "pt")