MyNixOS website logo
Description

Pulling Clean Data from Covid19india.org.

Pull raw and pre-cleaned versions of national and state-level COVID-19 time-series data from covid19india.org <https://www.covid19india.org>. Easily obtain and merge case count data, testing data, and vaccine data. Also assists in calculating the time-varying effective reproduction number with sensible parameters for COVID-19.

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: [email protected] 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:

  • :racing_car: migrating from tidyverse syntax to data.table
    • We are moving to data.table for speed and reduced dependencies
    • This update will also require R 4.1.0+ (uses native pipe)

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

  • 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.4

  • 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

Version 0.1.1

  • ➕ ADD get_all_data() function to pull state and national level time-series count, testing, and vaccine data
  • ➕ ADD get_district_counts() function to pull district-level time-series count data
  • 🔧 FIX get_r0 function to handle different input variable names.
Metadata

Version

0.1.4

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows