Skip to content

Commit 2cbb791

Browse files
committed
Minor changes
1 parent d920edc commit 2cbb791

5 files changed

Lines changed: 16 additions & 14 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- badges: end -->
88

9-
[infoelectoral](https://ropenspain.github.io/infoelectoral/) is a R library that helps retrieve official electoral results for Spain from the [Ministry of the Interior](https://infoelectoral.interior.gob.es/es/inicio/). It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.
9+
[infoelectoral](https://infoelectoral.spainelectoralproject.com/) is a R library that helps retrieve official electoral results for Spain from the [Ministry of the Interior](https://infoelectoral.interior.gob.es/es/inicio/). It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.
1010

1111
## Installation
1212

@@ -20,14 +20,14 @@ devtools::install_github("ropenspain/infoelectoral")
2020

2121
## Overview
2222

23-
[infoelectoral](https://ropenspain.github.io/infoelectoral/) has four functions:
23+
[infoelectoral](https://infoelectoral.spainelectoralproject.com/) has four functions:
2424

2525
- `mesas()` downloads the electoral results data of the selected election at the polling station level.
2626
- `municipios()` downloads the electoral results data of the selected election at the municipality level.
2727
- `provincias()` downloads the electoral results data of the selected election at the constituency level.
2828
- `candidatos()` downloads the candidates data of the selected elections.
2929

30-
The package also includes some [datasets](https://ropenspain.github.io/infoelectoral/reference/index.html#datasets) with the official names of the territorial units and the election dates.
30+
The package also includes some [datasets](https://infoelectoral.spainelectoralproject.com/reference/index.html#datasets) with the official names of the territorial units and the election dates.
3131

3232
## Basic usage
3333

@@ -40,5 +40,5 @@ df <- municipios(tipo_eleccion = "congreso", anno = 1982, mes = "10")
4040

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

43-
- [Get started](https://ropenspain.github.io/infoelectoral/articles/infoelectoral.html)
44-
- [Using infoelectoral to make electoral maps](https://ropenspain.github.io/infoelectoral/articles/municipios.html)
43+
- [Get started](https://infoelectoral.spainelectoralproject.com/articles/infoelectoral.html)
44+
- [Using infoelectoral to make electoral maps](https://infoelectoral.spainelectoralproject.com/articles/municipios.html)

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url: https://rOpenSpain.github.io/infoelectoral/
1+
url: https://infoelectoral.spainelectoralproject.com/
22

33
template:
44
package: spainelectoraltheme

pkgdown/index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
# infoelectoral
2+
13
<!-- badges: start -->
24

35
[![R-CMD-check](https://github.com/ropenspain/infoelectoral/workflows/R-CMD-check/badge.svg)](https://github.com/rOpenSpain/infoelectoral/actions) [![CRAN status](https://www.r-pkg.org/badges/version/infoelectoral)] [![License: GPL-2](https://img.shields.io/badge/license-GPL--2-blue.svg)](https://cran.r-project.org/web/licenses/GPL-2) [![rOS-badge](https://ropenspain.github.io/rostemplate/reference/figures/ropenspain-badge.svg)](https://ropenspain.es/)
46

57
<!-- badges: end -->
68

7-
[infoelectoral](https://ropenspain.github.io/infoelectoral/) is a R library that helps retrieve official electoral results for Spain from the [Ministry of the Interior](https://infoelectoral.interior.gob.es/es/inicio/). It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.
9+
[infoelectoral](https://infoelectoral.spainelectoralproject.com/) is a R library that helps retrieve official electoral results for Spain from the [Ministry of the Interior](https://infoelectoral.interior.gob.es/es/inicio/). It allows you to download the results of general, european and municipal elections of any year at the polling station and municipality level.
810

911
## Installation
1012

@@ -18,14 +20,14 @@ devtools::install_github("ropenspain/infoelectoral")
1820

1921
## Overview
2022

21-
[infoelectoral](https://ropenspain.github.io/infoelectoral/) has four functions:
23+
[infoelectoral](https://infoelectoral.spainelectoralproject.com/) has four functions:
2224

2325
- `mesas()` downloads the electoral results data of the selected election at the polling station level.
2426
- `municipios()` downloads the electoral results data of the selected election at the municipality level.
2527
- `provincias()` downloads the electoral results data of the selected election at the constituency level.
2628
- `candidatos()` downloads the candidates data of the selected elections.
2729

28-
The package also includes some [datasets](https://ropenspain.github.io/infoelectoral/reference/index.html#datasets) with the official names of the territorial units and the election dates.
30+
The package also includes some [datasets](https://infoelectoral.spainelectoralproject.com/reference/index.html#datasets) with the official names of the territorial units and the election dates.
2931

3032
## Basic usage
3133

@@ -38,5 +40,5 @@ df <- municipios(tipo_eleccion = "congreso", anno = 1982, mes = "10")
3840

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

41-
- [Get started](https://ropenspain.github.io/infoelectoral/articles/infoelectoral.html)
42-
- [Using infoelectoral to make electoral maps](https://ropenspain.github.io/infoelectoral/articles/municipios.html)
43+
- [Get started](https://infoelectoral.spainelectoralproject.com/articles/infoelectoral.html)
44+
- [Using infoelectoral to make electoral maps](https://infoelectoral.spainelectoralproject.com/articles/municipios.html)

vignettes/infoelectoral.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ vignette: >
1010
knitr::opts_chunk$set(echo = TRUE, results = "hide", include = TRUE, warning = FALSE, message = FALSE, eval = FALSE)
1111
```
1212

13-
The goal of [infoelectoral](https://ropenspain.github.io/infoelectoral/) is to facilitate the downloading and necessary processing of official data on electoral results from the Ministry of the Interior of Spain. Files can be downloaded at the polling station and municipality level on the ministry's website. However, the format of the files (plain text without delimitation) and the data structure design (the useful information for the analysis of the elections is dispersed in at least three different files) make importing the data somewhat costly.
13+
The goal of [infoelectoral](https://infoelectoral.spainelectoralproject.com/) is to facilitate the downloading and necessary processing of official data on electoral results from the Ministry of the Interior of Spain. Files can be downloaded at the polling station and municipality level on the ministry's website. However, the format of the files (plain text without delimitation) and the data structure design (the useful information for the analysis of the elections is dispersed in at least three different files) make importing the data somewhat costly.
1414

1515
To download the data at the municipality level, you have the `municipalities ()` function to which you have to provide the type of desired election ("congreso", "senado", "municipales" or "europeas", the Ministry of the Interior does not have the data from the regional electoral processes), the year (YYYY) and the month (MM) of the election.
1616

@@ -28,7 +28,7 @@ df <- mesas("congreso", "2019", "04")
2828
glimpse(df)
2929
```
3030

31-
[infoelectoral](https://ropenspain.github.io/infoelectoral/) also has the function `candidatos()`, which allows the downloading of data on candidates for the Senate, Congress of Deputies, European Parliament and city councils. In the case of Senate candidates, the function requires a value in the argument `nivel` indicating whether the voting results are wanted at the municipality or polling station level, and the resulting `data.frame` will include a column called `votos` indicating the number of ballots received by each candidate for the Upper House.
31+
[infoelectoral](https://infoelectoral.spainelectoralproject.com/) also has the function `candidatos()`, which allows the downloading of data on candidates for the Senate, Congress of Deputies, European Parliament and city councils. In the case of Senate candidates, the function requires a value in the argument `nivel` indicating whether the voting results are wanted at the municipality or polling station level, and the resulting `data.frame` will include a column called `votos` indicating the number of ballots received by each candidate for the Upper House.
3232

3333
```{r}
3434
df <- candidatos(tipo_eleccion = "senado", anno = "2019", mes = "11", nivel = "municipio")

vignettes/municipios.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ knitr::opts_chunk$set(echo = TRUE, results = "hide", include = TRUE, warning = F
1414

1515
## Install and load the packages
1616

17-
Install [infoelectoral](https://ropenspain.github.io/infoelectoral/) and load the packages needed.
17+
Install [infoelectoral](https://infoelectoral.spainelectoralproject.com/) and load the packages needed.
1818

1919
```{r}
2020
# install_packages("infoelectoral")

0 commit comments

Comments
 (0)