Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxsal/covid19india
Pull clean data on COVID-19 in India from covid19india.org for use in R!
https://github.com/maxsal/covid19india
covid-19 covid-19-data covid-19-india r rstats
Last synced: 11 days ago
JSON representation
Pull clean data on COVID-19 in India from covid19india.org for use in R!
- Host: GitHub
- URL: https://github.com/maxsal/covid19india
- Owner: maxsal
- License: other
- Created: 2021-06-05T02:27:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T15:23:32.000Z (over 2 years ago)
- Last Synced: 2024-06-05T20:21:28.239Z (9 months ago)
- Topics: covid-19, covid-19-data, covid-19-india, r, rstats
- Language: R
- Homepage: https://cran.r-project.org/package=covid19india
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# covid19india
[](https://CRAN.R-project.org/package=covid19india)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)`covid19india` is designed while working with data on COVID-19 in India. [covid19india.org](https://www.covid19india.org/) is
a data resource with APIs available. It is updated daily and provides count, testing, and vaccine data
at the national, state, and district level. This package eases the process for R users to obtain data
ready for analysis in hopes of democratizing data science and speed up public health research.:warning: **The package is under active development.** :warning: After creating functions for pulling data,
additional functions to calculate *basic* public health metrics and data visualizations will be added.Please share thoughts and comments with me: [mmsalva@umich.edu](mailto:mmsalva@umich.edu) or 🐦 [@MaxSalTweets](twitter.com/MaxSalTweets)
## Installation
``` r
# Install the CRAN version
install.packages("covid19india")# Or the development version from GitHub:
# install.packages("remotes")
remotes::install_github("maxsal/covid19india")
```## Coming soon :movie_camera:
- :racing_car: migrating data sources [`v0.1.5`]
- In light of covid19india shutting down, we are switching count data to scrape the Ministry of Health and Family Welfare site and pull vaccine data from CoWIN. At this time, a suitable replacement for state-level test data.## Example
This is a basic example which shows you how to solve a common problem:
``` r
# remotes::install_github("maxsal/covid19india", dependencies = TRUE)
library(covid19india)# load data from covid19india.org -----------
nat_count <- get_nat_counts()
state_count <- get_state_counts()
state_tests <- get_state_tests()
state_vax <- get_state_vax()# estimate r0 ----------
get_r0(nat_count)
get_r0(state_count)
```
## Versions### Announcement
* covid19india.org is ceasing to maintain their website at the end of October. We are currently seeking alternate data sources which will be integrated into the package for future use. Expected released with v0.1.5.### Version 0.1.5
* Switching data sources in light of covid19india shutting down### Version 0.1.4
* ~NOW ON CRAN~ A rebuild of the package with a `data.table` backend. Improved performance on the order of 4x to 18x. Fewer dependencies. Removed dependencies on R 4.1+ and data.table development version 1.14.3 from earlier version of dev0.1.4.### Version 0.1.2
* First CRAN submission! Find `covid19india` on CRAN @ [https://cran.r-project.org/package=covid19india](https://cran.r-project.org/package=covid19india)### Version 0.1.1
* ➕ ADD [`get_all_data()`](R/get_all_data.R) function to pull state and national level time-series count, testing, and vaccine data
* ➕ ADD [`get_district_counts()`](R/get_district_counts.R) function to pull district-level time-series count data
* 🔧 FIX [`get_r0`](R/get_r0.R) function to handle different input variable names