Skip to content

Commit

Permalink
Update tidyverse-pratica.R
Browse files Browse the repository at this point in the history
muda o objeto cleg2022 para cand_leg_2022
  • Loading branch information
biamuniz authored Oct 29, 2023
1 parent 07d84ff commit 8baedd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidyverse-pratica.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ cand_leg_2022 <- read.csv2("data/consulta_cand_2022_BRASIL.csv",
# Quantas pessoas sao policiais ou militares?
# Essa coluna/variavel se chama DESCRICAO_OCUPACAO
# Vamos usar a funcao DISTINCT para descobrir quais sao as possiveis ocupacoes existentes na base:
ocupacoes2022 <- cleg2022 %>%
ocupacoes2022 <- cand_leg_2022 %>%
distinct(DS_CARGO)

# Vejam que sao 213 ocupacoes diferentes, incluindo "deputado" e "senador".
# Pra facilitar nossa busca, vamos organizar por ordem alfabetica:
ocupacoes2022 <- cleg2022 %>%
ocupacoes2022 <- cand_leg_2022 %>%
distinct(DS_OCUPACAO) %>%
arrange(DS_OCUPACAO)

Expand Down

0 comments on commit 8baedd4

Please sign in to comment.