Giter Site home page Giter Site logo

yulab-smu / ncov2019 Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 7.0 12.14 MB

:microbe: Exploring COVID-19 data

Home Page: https://doi.org/10.7717/peerj.11421

License: Other

R 96.68% Makefile 3.32%
covid-data covid-19 sars-cov-2 covid19-tracker covid19-data covid-virus covid-api

ncov2019's Introduction

nCov2019: An R package for exploring COVID-19 statistics

The package was developed since Jan. 2020 and originally hosted on GuangchuangYu/nCov2019. This repo contains an up-to-date version with data from new sources (from worldometers and JHUCSSE) and new data types (vaccine and therapeutics data).

🏠 Data Sources

Fetching data using API provided by disease.sh

Find out more on the vignette vignette.

✍️ Authors

Guangchuang YU and Tianzhi Wu

https://yulab-smu.top

If you use nCov2019, please cite the following article:

Wu T, Hu E, Ge X*, Yu G*. 2021. nCov2019: an R package for studying the COVID-19 coronavirus pandemic. PeerJ 9:e11421 https://doi.org/10.7717/peerj.11421

⏬ Installation

Get the development version from github:

## install.packages("remotes")
remotes::install_github("YuLab-SMU/nCov2019")

πŸ”° Usages

  • res <- query() to query 5 types of statistics
    • global summary,
    • latest data
    • historical data
    • vaccine data
    • therapeutic data
  • x <- res$global to access global summary data
    • summary(x) will return global overview
    • x$affectedCountries will return total affected countries,(other 20 types of statistics is available)
  • y <- res$latest or y <- res$historical to access latest or historical data
    • y["global"] will return all countries' statistics
    • y[country] will return country level statistics
    • For countries in China, UK, Australia, Canada ,Denmark , France and Netherlands, provincial data is also available and y[country,province] will return statistics data of the selected province
  • z <- res$vaccine or y <- res$therapeutics to access vaccine or therapeutic data
    • summary(z) will return the summary of their trial phase
    • z["all"] will return all candidate
    • z[ID="id1"] each vaccine or therapeutics candidate has an id, this will return detail description of the selected candidate (e.g., "id1")
  • plot() to present data on map
  • dashboard() to open Shiny app dashboard

🎨 Example

Run the script example.R in R using source("example.R"), will produce the following figure:

πŸ“– Documents

πŸ“ˆ Shiny Apps that use nCov2019

πŸ’– Collected in resource list

ncov2019's People

Contributors

gaospecial avatar guangchuangyu avatar timze216 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ncov2019's Issues

Using query() function

When using query() function, an error occurs at Querying historical data ...

the error is as follows. " Error in loadNamespace(name) : there is no package called β€˜reshape2’"

Hence can now load res.

please advice,
Thank you

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.