voter_profile {electionsBR} | R Documentation |
Download data on the voters' profile
Description
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.
Usage
voter_profile(year, encoding = "windows-1252", temp = TRUE, readme_pdf = FALSE)
Arguments
year |
Election year ( |
encoding |
Data original encoding (defaults to 'windows-1252'). This can be changed to avoid errors
when |
temp |
( |
readme_pdf |
original readme |
Details
If export is set to TRUE
, the downloaded data is saved as .dta and .sav
files in the current directory.
Value
voter_profile()
returns a data.frame
.
Examples
## Not run:
df <- voter_profile(2002)
## End(Not run)
[Package electionsBR version 0.4.0 Index]