Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencia no formato de Data_Nascimento #62

Open
JonnyPhillips opened this issue Apr 1, 2019 · 1 comment
Open

Inconsistencia no formato de Data_Nascimento #62

JonnyPhillips opened this issue Apr 1, 2019 · 1 comment

Comments

@JonnyPhillips
Copy link
Collaborator

Data_Nascimento tem classe character para todos os anos e cargos, exceto para 2004 vereador, quando tenha classe numerico. Entao o codigo embaixo gera um erro no momento de 'bind_rows'. Pode ser um erro no banco de dados e nao no API, nao sei.

years <- seq(2000,2016,by=4)
cargos <- c(11,13)
params <- expand.grid(year=years,position=cargos)

local_cands <- params %>% mutate(regional_aggregation="Municipality",
political_aggregation="Candidate") %>%
pmap(get_elections) %>%
bind_rows()

@JonnyPhillips
Copy link
Collaborator Author

Tambem aparece varias inconsistencias no classe de SIGLA_LEGENDA, DATA_NASCIMENTO e COD_MUN_TSE ao longo dos anos para eleicoes gerais (codigo_cargo=1,3,5,6,7,8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant