Skip to contents

The sixth presidential election of Sri Lanka was held in 2010. Its results are published as a pdf file. The data available in this file is scraped and summarised as a data-frame Election2010.

Usage

data(Election2010)

Format

A data frame with 6 columns and 5434 rows.

Year

Year of the presidential election

District

District Names

Electorate

Electorate Names, Postal District Votes, Final District Results and Displaced District Votes

ColNames

Candidate Names, Total No of Valid Votes, No of Rejected Votes, Total No of Votes Polled and No of Registered Electors

Votes

No of votes for the ColNames variable

Percentage

Percentage of votes with regard to the No of Registered Electors and the Total No of Votes Polled for Total No of Votes Polled and all other ColNames variable, respectively

Source

Extracted from the pdf published by the Sri Lankan Elections commission at https://elections.gov.lk or the project that I have completed in scraping the data from the pdf file at : https://github.com/Amalan-ConStat/PresidentialElection

Details

There are 22 districts and 160 electorates in Sri Lanka. In 2010 twenty-two candidates participated in this election and Mahinda Rajapaksha became the executive president for the second time.

Examples

Election2010[Election2010$District == "Colombo" & Election2010$Electorate == "Colombo-North",]
#> # A tibble: 26 x 6
#>     Year District Electorate    ColNames                           Votes Perce~1
#>    <dbl> <chr>    <chr>         <chr>                              <dbl>   <dbl>
#>  1  2010 Colombo  Colombo-North Sarath Fonseka                     42896   69.5 
#>  2  2010 Colombo  Colombo-North Mahinda Rajapaksha                 17605   28.5 
#>  3  2010 Colombo  Colombo-North Channa Janaka Sugathsiri Gamage      222    0.36
#>  4  2010 Colombo  Colombo-North Mohomad Cassim Mohomad Ismail        197    0.32
#>  5  2010 Colombo  Colombo-North Vickramabahu Karunaratna             112    0.18
#>  6  2010 Colombo  Colombo-North Panagoda Don Prince Soloman Anura~    99    0.16
#>  7  2010 Colombo  Colombo-North Sarath Manamendra                     89    0.14
#>  8  2010 Colombo  Colombo-North M K Sivajilingam                      86    0.14
#>  9  2010 Colombo  Colombo-North Lal Perera                            80    0.13
#> 10  2010 Colombo  Colombo-North Achala Ashoka Suraweera               72    0.12
#> # ... with 16 more rows, and abbreviated variable name 1: Percentage