Skip to content

Relectoral

Electoral Analysis

v0.1.0 · Jun 14, 2020 · GPL-2

Description

Functions to obtain an important number of electoral indicators described in the package, which can be divided into two large sections: The first would be the one containing the indicators of electoral disproportionality, such as, Rae index, Loosemore–Hanby index, etc. The second group is intended to study the dimensions of the party system vote, through the indicators of electoral fragmentation, polarization, volatility, etc. Moreover, multiple seat allocation simulations can also be performed based on different allocation systems, such as the D'Hondt method, Sainte-Laguë, etc. Finally, some of these functions have been built so that, if the user wishes, the data provided by the Spanish Ministry of Home Office for different electoral processes held in Spain can be obtained automatically. All the above will allow the users to carry out deep studies on the results obtained in any type of electoral process. The methods are described in: Oñate, Pablo and Ocaña, Francisco A. (1999, ISBN:9788474762815); Ruiz Rodríguez, Leticia M. and Otero Felipe, Patricia (2011, ISBN:9788474766226).

Downloads

176

Last 30 days

19034th

176

Last 90 days

176

Last year

CRAN Check Status

1 ERROR
13 NOTE
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-macos-arm64 NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (21 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Miguel Rodríguez Asensio <miguel.rodriguezasensio@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Miguel", "Rodríguez"),
                    family = "Asensio",
                    role = c("aut", "cre"),
                    email = "miguel.rodriguezasensio@gmail.com")
as necessary.
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘xlsx’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Miguel Rodríguez Asensio <miguel.rodriguezasensio@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Miguel", "Rodríguez"),
                    family = "Asensio",
                    role = c("aut", "cre"),
                    email = "miguel.rodriguezasensio@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘rmarkdown’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘rmarkdown’
  All declared Imports should be used.
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-macos-arm64

LazyData

  'LazyData' is specified without a 'data' directory
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-macos-x86_64

LazyData

  'LazyData' is specified without a 'data' directory
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-windows-x86_64

LazyData

  'LazyData' is specified without a 'data' directory
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^

Check History

ERROR 0 OK · 13 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Miguel Rodríguez Asensio <miguel.rodriguezasensio@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Miguel", "Rodríguez"),
                    family = "Asensio",
                    role = c("aut", "cre"),
                    email = "miguel.rodriguezasensio@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Miguel Rodríguez Asensio <miguel.rodriguezasensio@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Miguel", "Rodríguez"),
                    family = "Asensio",
                    role = c("aut", "cre"),
                    email = "miguel.rodriguezasensio@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘rmarkdown’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘rmarkdown’
  All declared Imports should be used.
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) polarizacion_Dalton.Rd:26: Lost braces; missing escapes or markup?
    26 | {Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2)}
       | ^
checkRd: (-1) reparto_div.Rd:37: Lost braces; missing escapes or markup?
    37 | The set of divisors is formed by the odd numbers, that is {1,3,..,2n+1}.
       |                                                           ^

Dependency Network

Dependencies Reverse dependencies readxl ggforce ggplot2 xlsx dplyr sf rmarkdown Relectoral

Version History

new 0.1.0 Mar 9, 2026