Skip to contents

General functions

These are the main workhorse functions for retrieving data from the TSE and Cepesp data repositories.

elections_tse()
Function for downloading electoral data from the TSE repository
elections_cepesp()
Retrieve electoral data from the cepesp API.
elections_rda()
Download data on the candidates' background in local elections

Electoral results

Functions to retrieve electoral results from the TSE data repository.

details_mun_zone()
Download data on the verification of federal elections in Brazil
party_mun_zone()
Download data on the polls by parties from federal elections in Brazil
seats()
Download data on the number of seats under dispute in federal elections
vote_mun_zone()
Download data on candidate electoral results in federal elections in Brazil
vote_section()
Download data on candidate electoral results in federal elections in Brazil by electoral section

Candidates, parties, and voters

Functions to retrieve candidate data from the TSE data repository.

candidate()
Download data on the candidates' backgrounds in federal elections
legends()
Download data on federal election coalitions in Brazil
personal_finances()
Download data on federal candidates' personal financial disclosures
social_media()
Download data on the candidates' social media links in federal elections
vote_section()
Download data on candidate electoral results in federal elections in Brazil by electoral section
voter_profile()
Download data on the voters' profile
voter_profile_by_section()
Download data on the voters' profile by vote section

Convenience functions

Utility functions for common data tasks.

uf_br()
Returns a vector with the abbreviations of all Brazilian states
parties_br()
Returns a vector with the abbreviations of all Brazilian parties
electionsBR electionsBR-package
R functions to download and clean Brazilian electoral Data

Deprecated functions

Functions used to retrieve electoral data from the TSE repositories. These functions are deprecated and will be removed in future versions of the package.

candidate_fed()
Download data on the candidates' background in local elections
details_mun_zone_fed()
Download data on the verification of federal elections in Brazil
legend_fed()
Download data on federal election coalitions in Brazil
party_mun_zone_fed()
Download data on the polls by parties from federal elections in Brazil
personal_finances_fed()
Download data on federal candidates' personal financial disclosures
seats_fed()
Download data on the number of seats under dispute in federal elections
vote_mun_zone_fed()
Download data on candidate electoral results in federal elections in Brazil
vote_section_fed()
Download data on candidate electoral results in federal elections in Brazil by electoral section
candidate_local()
Download data on the candidates' background in local elections
details_mun_zone_local()
Download data on the verification of local elections in Brazil
legend_local()
Download data on local election coalitions in Brazil
party_mun_zone_local()
Download data on the polls by parties from local elections in Brazil
personal_finances_local()
Download data on local candidates' personal financial disclosures
seats_local()
Download data on the number of seats under dispute in local elections
vote_mun_zone_local()
Download data on candidate electoral results in local elections in Brazil
vote_section_local()
Download data on candidate electoral results in local elections in Brazil by electoral section