The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

infoelectoral

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

infoelectoral is a R library that helps retrieve 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.

Installation

# To install the latest stable version from CRAN:
install.packages("infoelectoral")

# To install the development version:
devtools::install_github("ropenspain/infoelectoral")

Overview

infoelectoral has four functions:

The package also includes some datasets with the official names of the territorial units and the election dates.

Basic usage

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

Learn more

For a a extended example of how all functions work please check the vignettes:

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.