Code Monkey home page Code Monkey logo

2012roelections's Introduction

WARNING: CURRENTLY WORKING ON WINDOWS 10, BUT NOT ON UBUNTU 16.04, DUE TO ENCODING ISSUES

Some background on the 2012 Romanian elections

Local elections, June 2012. Details: https://ro.wikipedia.org/wiki/Alegeri_locale_%C3%AEn_Rom%C3%A2nia,_2012

Impeachment referendum, July 2012. Details: https://ro.wikipedia.org/wiki/Referendum_pentru_demiterea_pre%C8%99edintelui_Rom%C3%A2niei,_2012

General (Parliament) elections (two chambers), December 2012. Details: https://ro.wikipedia.org/wiki/Alegeri_legislative_%C3%AEn_Rom%C3%A2nia,_2012

Requirements

install.packages('R2HTML')

Data sources

Under construction. Some details in parlElectionsReadme.txt (in Romanian)

Download and load the data

If you don't feel like re-running most of the pre-processing phase, use loadDump.R (which was created by running writeDump.R). It will load the required objects into the memory.

To get the source data, run getData.R. This requires the package xlsReadWrite, unfortunately not available on CRAN anymore and probably incompatible with your R version. Therefore, you should rather use loadDump.R.

getData.R requires getGenElePrecinct.R and generalFunctions.R.

Use the data (after the previous step)

For local elections, load localElections.R. It requires localFunctions.R.

For general (Parliament) elections, run parlElections.R. It requires parlFunctions.R.

For the referendum, run refElections.R.

Work in progress

precComb... files -> combining local, referendum and precinct data.

chartsLocalRef -> some charts using local elections and referendum data.

01 02 03 04 05 06 07

2012roelections's People

Contributors

filipok avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.