The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

covid19india

CRAN status Lifecycle: experimental

covid19india is designed while working with data on COVID-19 in India. 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 or 🐦 @MaxSalTweets

Installation

# 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:

Example

This is a basic example which shows you how to solve a common problem:

# 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

Version 0.1.4

Version 0.1.2

Version 0.1.1

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.