GithubHelp home page GithubHelp logo

han-tun / covid19 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dankelley/covid19

0.0 1.0 0.0 2.14 MB

graphs covid19 incidence over time

License: GNU General Public License v3.0

R 14.70% HTML 84.91% Makefile 0.38% Rebol 0.01%

covid19's Introduction

covid19

This is a system for graphing covid19 incidence over time.

To add a new country, do the following (and, please, make a pull request). Note that the steps do not require R skill. The only skills you need are the ability to use a plain-text editor, an understanding of how to make a pull request on github, and a unix machine (e.g. linux, or a mac set up with make, via Developer Tools). While editing, do not add line breaks that do not match local patterns, and do not merge together adjacent lines; also, please resist the temptation to change any text other than as instructed below.

  1. Find the "proper" name for the country in the source file https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv. This proper name must be used, not whatever you regard the name to be.
  2. Add the name to the Makefile, along with the other names. Put it in alphabetical order. Be very careful not to permit your text editor to add a line break.
  3. Look in the population.R file, which uses another .csv file to get country populations. If this file names your country differently than in step 1, you must add a line to population.R to rename the nation. Look near line 21.
  4. Edit the index.html file. Look for the line containing the text Shortcut links:. Add the new country in the list that follows that line, placing it in alphabetic order with respect to the others.
  5. Still within index.html, search down for the country name that occurs just below the one you added. You will get to a block of two lines, with a blank line above. Copy those three lines and paste the copy above. Now, you will see a duplicated entry. Move your cursor to the start of the first of the pair, and change the country name in the three spots where it occurs.
  6. If you know how, do a git diff to see the changes. Assure yourself that you have followed the proceeding steps correctly.
  7. Type make to rebuild the site. If this produces errors, it will be up to you to fix them, for they almost certainly mean that if I incorporate your changes, it will break the site for everyone.
  8. Once you are assured that things are working, generate a git "pull request" on github.com.

Note that if your pull request breaks the site, you will have wasted your time, and mine.

covid19's People

Contributors

dankelley 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.