View source: R/voter_profile_by_section.R
voter_profile_by_section | R Documentation |
voter_profile_by_section()
downloads and cleans data on the voters' profile aggregated by voting section (i.e., voting stations).
The function returns a data.frame
where each observation corresponds to a voter profile type.
voter_profile_by_section(
year,
uf = "AC",
encoding = "windows-1252",
temp = TRUE,
readme_pdf = FALSE
)
year |
Election year ( |
uf |
Federation Unit acronym ( |
encoding |
Data original encoding (defaults to 'windows-1252'). This can be changed to avoid errors
when |
temp |
( |
readme_pdf |
original readme |
If export is set to TRUE
, the downloaded data is saved as .dta and .sav
files in the current directory.
voter_profile()
returns a data.frame
with the following variables:
## Not run:
df <- voter_profile_by_section(2016)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.