voter_profile() downloads and cleans data on the voters' profile aggregated by state, city and electoral zone.
The function returns a data.frame where each observation corresponds to a voter profile type.
Arguments
- year
Election year (
integer). For this function, the following years are available: 1998, 2000, 2002, 2004, 2006, 2008, 2010, 2012, 2014, 2016, 2018, 2020, 2022, and 2024.- encoding
Data original encoding (defaults to 'windows-1252'). This can be changed to avoid errors when
ascii = TRUE. #'- temp
(
logical). IfTRUE, keep the temporary compressed file for future use (recommended)- readme_pdf
original readme