electionsBR
electionsBR contains a set of functions that automatically downloads and aggregates
election data from Brazil (1996-2014), directly from the Brazilian Superior Electoral Court website (TSE).
Among others, there are data available on local and federal elections for all positions (city councillor, mayor, state deputy, federal deputy, governor, and president) disaggregated by state of the Federation, city, zone, and polling stations.
Installation
For the time being, electionsBR is only available at GitHub. You can install this pre-release version via:
if (!require("devtools")) install.packages("devtools")
devtools::install_github("silvadenisson/electionsBR")How does it work?
electionsBR provides ten main functions to dowload and clean Brazilian electoral data:
- candidate_fed()
- candidate_local()
- details_mun_zone_fed()
- details_mun_zone_local()
- legend_fed()
- legend_local()
- party_mun_zone_fed()
- party_mun_zone_local()
- vote_mun_zone_fed()
- vote_mun_zone_local()
To download all the data from a given election, only the year argument must be passed to the function call:
df <- candidate_fed(year = 2002)Authors
Denisson Silva, Fernando Meireles, and Beatriz Costa.
License
GPL (>= 2)