| Type: | Package |
| Title: | Presidential Election Data of "Sri Lanka" from 1982 to 2019 |
| Version: | 1.1.0 |
| Description: | Provides Sri Lankan presidential election results for 1982, 1988, 1994, 1999, 2005, 2010, 2015, and 2019. 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. |
| License: | MIT + file LICENSE |
| URL: | https://github.com/Amalan-ConStat/SLPresElection,https://amalan-constat.github.io/SLPresElection/index.html |
| BugReports: | https://github.com/Amalan-ConStat/SLPresElection/issues |
| Depends: | R (≥ 4.1.0) |
| Suggests: | knitr, rmarkdown, spelling, testthat |
| VignetteBuilder: | knitr |
| Encoding: | UTF-8 |
| Language: | en-US |
| LazyData: | TRUE |
| LazyDataCompression: | xz |
| Config/roxygen2/version: | 8.1.1 |
| NeedsCompilation: | no |
| Packaged: | 2026-10-14 14:43:48 UTC; amala |
| Author: | Amalan Mahendran |
| Maintainer: | Amalan Mahendran <amalan0595@gmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2026-10-14 15:02:06 UTC |
Presidential Election 1982
Description
Results of the Sri Lankan presidential election held in 1982, extracted from PDF result tables and prepared as Election1982.
Usage
data(Election1982)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported or recalculated percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied or calculated.
Details
Six candidates contested this election.
Preparation included corrections to Walapane total polled votes, Teldeniya registered-elector counts, corresponding district totals, and selected percentages. Postal registered-elector rows with missing counts were removed. Remaining missing counts were replaced with zero.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election1982)
Election1982[Election1982$District == "Colombo" & Election1982$Electorate == "Colombo-North", ]
Presidential Election 1988
Description
Results of the Sri Lankan presidential election held in 1988, extracted from PDF result tables and prepared as Election1988.
Usage
data(Election1988)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported or recalculated percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied or calculated.
Details
Three candidates contested this election.
Preparation included selected percentage calculations for Trincomalee, Badulla, Kurunegala, and Baddegama in Galle. Postal registered-elector rows with missing counts were removed. Remaining missing counts and selected associated percentages were replaced with zero.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election1988)
Election1988[Election1988$District == "Colombo" & Election1988$Electorate == "Colombo-North", ]
Presidential Election 1994
Description
Results of the Sri Lankan presidential election held in 1994, extracted from PDF result tables and prepared as Election1994.
Usage
data(Election1994)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied.
Details
Six candidates contested this election.
Missing counts were replaced with zero during preparation. No additional count corrections or percentage recalculations were recorded in the correction section of the preparation script.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election1994)
Election1994[Election1994$District == "Colombo" & Election1994$Electorate == "Colombo-North", ]
Presidential Election 1999
Description
Results of the Sri Lankan presidential election held in 1999, extracted from PDF result tables and prepared as Election1999.
Usage
data(Election1999)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied.
Details
Thirteen candidates contested this election.
Postal registered-elector rows with missing counts were removed. No additional count corrections or percentage recalculations were recorded in the correction section of the preparation script.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election1999)
Election1999[Election1999$District == "Colombo" & Election1999$Electorate == "Colombo-North", ]
Presidential Election 2005
Description
Results of the Sri Lankan presidential election held in 2005, extracted from PDF result tables and prepared as Election2005.
Usage
data(Election2005)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, Displaced District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported or calculated percentage on a 0–100 scale. The denominator depends on the row type and reporting table. Missing values indicate percentages that were not supplied or calculated.
Details
Thirteen candidates contested this election.
Percentages were calculated for district totals, postal votes, and displaced votes in Jaffna, Vanni, and Trincomalee. Registered-elector rows were removed from postal and displaced-vote tables.
The preparation functions used total polled votes as the denominator for candidate, valid-vote, and rejected-vote percentages in these tables. District turnout was calculated using registered electors. Candidate percentages in these tables therefore represent shares of polled votes rather than shares of valid votes.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election2005)
Election2005[Election2005$District == "Colombo" & Election2005$Electorate == "Colombo-North", ]
Presidential Election 2010
Description
Results of the Sri Lankan presidential election held in 2010, extracted from PDF result tables and prepared as Election2010.
Usage
data(Election2010)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, Displaced District Votes where available, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied.
Details
Twenty-two candidates contested this election.
No additional corrections were recorded in the correction section of the preparation script.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election2010)
Election2010[Election2010$District == "Colombo" & Election2010$Electorate == "Colombo-North", ]
Presidential Election 2015
Description
Results of the Sri Lankan presidential election held in 2015, extracted from PDF result tables and prepared as Election2015.
Usage
data(Election2015)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Reported or recalculated percentage on a 0–100 scale. The denominator depends on the row type. Missing values indicate percentages that were not supplied or calculated.
Details
Nineteen candidates contested this election.
Missing counts and their associated percentages were replaced with zero. The missing turnout percentage for Rambukkana in Kegalle was calculated using total polled votes and registered electors.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election2015)
Election2015[Election2015$District == "Colombo" & Election2015$Electorate == "Colombo-North", ]
Presidential Election 2019
Description
Results of the Sri Lankan presidential election held in 2019, extracted from PDF result tables using OCR and prepared as Election2019.
Usage
data(Election2019)
Format
A data frame with 6 columns.
- Year
Year of the presidential election.
- District
Electoral district name, aligned with the naming convention used in the earlier datasets.
- Electorate
Polling-division name, Postal District Votes, or Final District Results.
- ColNames
Candidate name or summary label: Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled, or No of Registered Electors.
- Votes
Candidate vote count or the count associated with a summary label. Registered-elector rows contain elector counts rather than votes.
- Percentage
Printed percentage on a 0–100 scale. Percentage proportions imported from ODS files were multiplied by 100 and rounded to two decimal places. Missing values indicate percentages that were not supplied.
Details
Thirty-five candidates contested this election.
Extracted results were assembled in ODS workbooks before conversion to the common six-column dataset format. Summary labels and selected district and electorate spellings were aligned with the earlier datasets. Label capitalisation was preserved.
The omitted Kilinochchi result table in the Jaffna PDF was supplemented. Four misplaced result tables were replaced: Colombo postal votes, Borella in Colombo, Kegalle postal votes, and Kolonna in Ratnapura.
Printed registered-elector discrepancies were retained and documented. Component totals exceeded district totals by 200 in Hambantota, 270 in Jaffna, 1 in Kalutara, and 1 in Ratnapura. These discrepancies concern registered electors rather than votes cast.
District totals and their component results are both included. These reporting levels should be analysed separately to avoid double-counting.
Source
Election Commission of Sri Lanka: https://elections.gov.lk/en/elections/results_pre_E.html.
Data extraction and preparation: https://github.com/Amalan-ConStat/PresidentialElection.
Examples
data(Election2019)
Election2019[Election2019$District == "Colombo" & Election2019$Electorate == "Colombo-North", ]