Download data on the number of seats under dispute in local elections
Source:R/seats_local.R
seats_local.Rdseats_local() downloads and aggregates data on the number of seats under dispute in
local elections in Brazil. The function returns a tbl, data.frame where each observation
corresponds to a municipality office dyad.
Arguments
- year
Election year. For this function, only the years of 1996, 2000, 2004, 2008, 2012, 2016, 2020 and 2024 are available.
- uf
Federation Unit acronym (
character vector).- 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)