Download data on candidate electoral results in local elections in Brazil by electoral section
Source:R/vote_section_local.R
vote_section_local.Rdvote_section_local() downloads and cleans data on the verification of local elections in Brazil,
disaggregated by electoral section. Different from other electionsBR's functions, results are only extract for individual states, one at a time. The function returns a data.frame where each observation
corresponds to an electoral section in a given Brazilian state.
Arguments
- year
Election year. For this function, only the years 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024 are available.
- uf
Federation Unit acronym (
character vector). Defaults to'AC'(Acre).- encoding
Data original encoding (defaults to 'Latin-1'). This can be changed to avoid errors when
ascii = TRUE.- temp
(
logical). IfTRUE, keep the temporary compressed file for future use (recommended)