GithubHelp home page GithubHelp logo

class-2018-11-26's Introduction

Calculating the Winner in Maine 2nd Congressional District

Consider the raw votes in the 2018 election for the 2nd Congressional District in Maine. Maine uses ranked choice voting, a system which allows votes to provide a rank for each candidate on the ballot. This repo contains the raw Excel files, which allows us to replicate the state's calculations.

Step 1

Go from the raw xlsx files to the format in tibble_1. In other words, your Rmd file should begin with just the files in the repo and create a tibble with the same variables (and with rows in the same order!) as what you see in tibble_1.

Step 2

Go from tibble_1 in tibble_2. Don't worry about the raw files. Start with what you have in tibble_1, which can be read in using read_rds(). Produce a tibble with the same variables/ordering as tibble_2.

Step 3

Start with tibble_2. (That is, the beginning of your Rmd file just reads in tibble_2.rds.) Create ggplot2 graphic which looks like the one on base_plot.rds. (You can see what this is by just reading it that file and printing out the object which it creates.)

Step 4

Create an Rmd file which, when knitted, looks like me_2.html.

class-2018-11-26's People

Contributors

davidkane9 avatar

Watchers

James Cloos 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.