party_mun_zone_local: Download data on the polls by parties from local elections in...

Description Usage Arguments Value Note Examples

View source: R/party_mun_zone_local.R

Description

party_mun_zone_local() downloads and aggregates data on the polls by parties from local elections in Brazil, disaggregated by electoral zone. The function returns a data.frame where each observation corresponds to a city/zone.

Usage

1
party_mun_zone_local(year, ascii = FALSE, encoding = "windows-1252")

Arguments

year

Election year. For this function, only the years 1996, 2000, 2004, 2008, 2012, and 2016 are available.

ascii

(logical). Should the text be transformed from Latin-1 to ASCII format?

encoding

Data original encoding (defaults to 'windows-1252'). This can be changed to avoid errors when ascii = TRUE.

Value

party_mun_zone_local() returns a data.frame with the following variables:

Note

For the elections prior to 2000, some information can be incomplete.

Examples

1
2
3
4
## Not run: 
df <- party_mun_zone_local(2000)

## End(Not run)

electionsBR documentation built on May 19, 2017, 8:31 p.m.

Search within the electionsBR package
Search all R packages, documentation and source code