Package: SLPresElection 2.0.0

Amalan Mahendran

SLPresElection: Presidential Election Data of "Sri Lanka" from 1982 to 2024

Provides Sri Lankan presidential election results for 1982, 1988, 1994, 1999, 2005, 2010, 2015, 2019 and 2024. The datasets contain candidate vote counts, reported percentages, and summary statistics for polling divisions and district results, including postal and displaced votes where available. Results were extracted from PDF documents and prepared in a consistent tabular format.

Authors:Amalan Mahendran [aut, cre]

SLPresElection_2.0.0.tar.gz
SLPresElection_2.0.0.zip(r-4.7-any)SLPresElection_2.0.0.zip(r-4.6-any)
SLPresElection_2.0.0.tar.gz(r-4.7-any)SLPresElection_2.0.0.tar.gz(r-4.6-any)
SLPresElection_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
SLPresElection/json (API)

# Install 'SLPresElection' in R:
install.packages('SLPresElection', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/amalan-constat/slpreselection/issues

Datasets:

On CRAN:

Conda:

3.26 score 6 scripts 301 downloads 0 exports 0 dependencies

Last updated from:f63f17af7d. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK109
source / vignettesOK169
linux-releaseOK103
windows-develOK54
windows-releaseOK73
wasm-releaseOK87

Exports:

Dependencies:

2024 Presidential Election: Data Preparation
Preparation scope | OCR extraction prompt | Standardised summary labels | Prepared percentages | Checked worksheet structure | Checked vote totals and candidate percentages | [\text | \sum_{i=1}^{38}\text{Candidate votes}_i | [\text | \text | [\text{Candidate percentage}_i | Standardised candidate names | Prepared reporting labels and dataset columns | Aligned district names | Calculated district totals | Aligned electorate names with 2015 | Export and interpretation

Last update: 2026-10-30
Started: 2026-10-30

1982 Presidential Election: Data Preparation
Preparation scope | Postal registered-elector rows | Walapane and Nuwara-Eliya vote totals | Teldeniya and Mahanuwara registered electors | Remaining missing vote counts | Checks and documentation limits

Last update: 2026-10-14
Started: 2026-10-14

1988 Presidential Election: Data Preparation
Preparation scope | Postal registered-elector rows | Selected percentage calculations | Missing vote counts and associated percentages | Checks and documentation limits

Last update: 2026-10-14
Started: 2026-10-14

1994 Presidential Election: Data Preparation
Preparation scope | Missing vote counts

Last update: 2026-10-14
Started: 2026-10-14

1999 Presidential Election: Data Preparation
Preparation scope | Unavailable postal registered-elector counts

Last update: 2026-10-14
Started: 2026-10-14

2005 Presidential Election: Data Preparation
Preparation scope | District-total percentages | Postal-vote percentages | Displaced-vote percentages | Registered-elector rows in special tables | Implementation details requiring review

Last update: 2026-10-14
Started: 2026-10-14

2010 Presidential Election: Data Preparation
Preparation scope | No additional correction recorded | Export and documentation limits

Last update: 2026-10-14
Started: 2026-10-14

2015 Presidential Election: Data Preparation
Preparation scope | Missing vote counts and associated percentages | Rambukkana turnout percentage

Last update: 2026-10-14
Started: 2026-10-14

2019 Presidential Election: Data Preparation
Initial OCR extraction prompt | Preparation scope | Supplemented missing results | Replaced misplaced result tables | Preserved registered-elector discrepancies | Imported and checked the ODS tables | Aligned summary and reporting labels | Aligned district names | Aligned electorate names with 2015 | Validation findings and export scope

Last update: 2026-10-14
Started: 2026-10-14