Offers a set of functions to easily download and clean Brazilian electoral data from the Superior Electoral Court website. Among others, the package retrieves data on local and federal elections for all positions (city councilor, mayor, state deputy, federal deputy, governor, and president) aggregated by state, city, and electoral zones.
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.
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")
electionsBR provides ten main functions to dowload and clean Brazilian electoral data:
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)
GPL (>= 2)