Description Usage Arguments Details Value Note See Also Examples
View source: R/vote_section_local.R
vote_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.
1 2 3 4 5 6 7 8 | vote_section_local(
year,
uf = "AC",
ascii = FALSE,
encoding = "latin1",
export = FALSE,
temp = TRUE
)
|
year |
Election year. For this function, only the years 1996, 2000, 2004, 2008, 2012, 2016 and 2020 are available. |
uf |
Federation Unit acronym ( |
ascii |
( |
encoding |
Data original encoding (defaults to 'Latin-1'). This can be changed to avoid errors
when |
export |
( |
temp |
( |
If export is set to TRUE
, the data is saved as .dta and .sav
files in the working directory.
vote_section_local()
returns a data.frame
with the following variables:
DATA_GERACAO: Generation date of the file (when the data was collected).
HORA_GERACAO: Generation time of the file (when the data was collected), Brasilia Time.
ANO_ELEICAO: Election year.
NUM_TURNO: Round number.
DESCRICAO_ELEICAO: Description of the election.
SIGLA_UF: Units of the Federation's acronym in which occurred the election.
SIGLA_UE: Units of the Federation's acronym (In case of major election is the FU's acronym in which the candidate runs for (text) and in case of municipal election is the municipal's Supreme Electoral Court code (number)). Assume the special values BR, ZZ and VT to designate, respectively, Brazil, Overseas and Absentee Ballot.
CODIGO_MUNICIPIO: Supreme Electoral code from the city where occurred the election.
NOME_MUNICIPIO: Name of the city where occurred the election.
NUMERO_ZONA: Zone number.
NUMERO_SECAO: Electoral section number.
CODIGO_CARGO: Code of the position that the candidate runs for.
DESCRICAO_CARGO: Description of the position that the candidate runs for.
NUM_VOTAVEL: Candidate's number in the ballot box.
QTDE_VOTOS: Number of votes.
For the elections prior to 2002, some information can be incomplete.
vote_section_fed
for federal elections in Brazil.
1 2 3 4 | ## Not run:
df <- vote_section_local(2000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.