Skip to content

infoelectoral is a R library that helps retrieve and analize official electoral results for Spain from the Ministry of the Interior. It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.

Notifications You must be signed in to change notification settings

paugrau/infoelectoral

 
 

Repository files navigation

infoelectoral

R-CMD-check [CRAN status License: GPL-2 rOS-badge

infoelectoral is a R library that helps retrieve and analize official electoral results for Spain from the Ministry of the Interior. It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.

How to install?

devtools::install_github("ropenspain/infoelectoral")

How to use it

infoelectoral has three functions:

  1. mesas() downloads the electoral results data of the selected election at the polling station level.
  2. municipios() downloads the electoral results data of the selected election at the municipality level.
  3. provincias() downloads the electoral results data of the selected election at the constituency level.
  4. candidatos() downloads the candidates data of the selected elections.

Example

library(infoelectoral)
df <- municipios(tipo_eleccion = "congreso", anno = 1982, mes = "10")

About

infoelectoral is a R library that helps retrieve and analize official electoral results for Spain from the Ministry of the Interior. It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%