Infoelectoral
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.
Install / Use
/learn @rOpenSpain/InfoelectoralREADME
infoelectoral
<!-- badges: start --> <!-- badges: end -->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:
mesas()downloads the electoral results data of the selected election at the polling station level.municipios()downloads the electoral results data of the selected election at the municipality level.provincias()downloads the electoral results data of the selected election at the constituency level.candidatos()downloads the candidates data of the selected elections.
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:
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
