Some members of the Ugandan media have claimed that counts of registered voters for the 2016 General Election, contain almost 20,000 “ghost voters”. This is according to their analyses (using excel) of data released by the Uganda Electoral Commission (EC), the body charged with conducting a free and fair election. With voting just 8 days away, I wanted to compile this data into an R package and make available it available to the general public (R users/data analysts) to analyze and develop their own conclusions. Its open data now!!
The package is currently available on GitHub here: https://github.com/Emaasit/UGvoters16
Motivation for Developing this R Package
There were several members of the media who were claiming to have found discrepancies in the Uganda Electoral Commission voter count. Their claims created a storm on social media which caught my attention.
With the data readily available in PDF format on the website of the EC, I wanted to compile it into an R package so that others can analyze it and make their own conclusions.
How to use the Package
Before you can use the data in R, you need to download it from Github using the following commands:
install.packages("devtools")
devtools::install_git("git://github.com/emaasit/UGvoters16.git", branch = "master") library(UGvoters16)
The package is made up of two datasets including:
- “UGvoters16”: This is the original data set released by the Commission. It’s made up of 14 variables and 280, 010 observations.
- “analyzed”: This dataset contains an extra column (“ANALYZED_VOTER_COUNT”) added by a member of the media to make their comparison.
After loading the library, you can create local data frames using the following commands:
df1
## SER_NO DIST_CODE DISTRICT_NAME EA_CODE EA_NAME SCTY_CODE
## 1 1 ...read more
Source:: r-bloggers.com