Skip to content

Instantly share code, notes, and snippets.

@kguidonimartins
Last active August 8, 2023 04:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kguidonimartins/65e3b9f484bbd0067d943ef5b94eca5e to your computer and use it in GitHub Desktop.
Save kguidonimartins/65e3b9f484bbd0067d943ef5b94eca5e to your computer and use it in GitHub Desktop.
if (!require("tidyverse")) install.packages("tidyverse")
if (!require("jsonlite")) install.packages("jsonlite")
url <- "https://resultados.tse.jus.br/oficial/ele2022/544/dados-simplificados/br/br-c0001-e000544-r.json"
jsonlite::fromJSON(url) %>%
purrr::pluck("cand") %>%
dplyr::select(nm, pvap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment