Giter Site home page Giter Site logo

nyt_covid's Introduction

Some COVID-related Scripts

Scripts and shiny apps I've used to play around with the New York Times' COVID-19 data

Get the data

cd data
git clone https://github.com/nytimes/covid-19-data.git

Update daily

cd data/covid-19-data/
git pull

Cumulative cases by county for each day

The file cumulative_counts_by_county.R generates an excel document with the cumulative cases by counties across the dates in which there is data.

Accompanying Shiny App

The cumulative_by_state directory contains a simple shiny app to navigate the county-level cumulative counts by state and date. Either run from rStudio, or from an open R session in this directory run

library(rshiny)
runApp('cumulative_by_state')

Growth over time

The directory growth_over_time has a simple R shiny app to look at how case numbers have grown over time in each county.

library(shiny)
runApp('growth_over_time')

Anomalies

The script anomaly_detection.r and the accompanying shiny app anomaly_table produce a list of counties and dates where each row represents a county whose case and/or death count on one day was less than the previous date. Results from me having run this are available in weird_counties.csv (note: this might not be up to date with latest NYT data)

Indiana Data

The state no longer provides this file (boo). JSON version should still work.

The Indiana_Cumulative_Counts directory contains an RShiny app that parses the COVID-19 CASE DATA csv file available at Indiana's Data Hub and returns the cumulative case count in each county by day. I've included a dataset in this directory, but likely you'll want to download something more recent from the Data Hub.

The indiana_json directory has an Rshiny app and some additional code for pulling data from the state's JSON feed.

nyt_covid's People

Contributors

theandyb avatar

Stargazers

 avatar

Watchers

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