infectiousR

The infectiousR package provides a seamless interface to access real-time data on infectious diseases through the disease.sh API, a RESTful API offering global health statistics.

https://github.com/lightbluetitan/infectiousr

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

The infectiousR package provides a seamless interface to access real-time data on infectious diseases through the disease.sh API, a RESTful API offering global health statistics.

Basic Info
  • Host: GitHub
  • Owner: lightbluetitan
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 1.47 MB
Statistics
  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 9 months ago · Last pushed 9 months ago
Metadata Files
Readme

README.md

infectiousR

The infectiousR package provides a seamless interface to access real-time data on infectious diseases through the disease.sh API, a RESTful API offering global health statistics. The package enables users to explore up-to-date information on disease outbreaks, vaccination progress, and surveillance metrics across countries, continents, and U.S. states.

It includes a set of API-related functions to retrieve real-time statistics on COVID-19, influenza-like illnesses from the Centers for Disease Control and Prevention (CDC), and vaccination coverage worldwide.

Installation

You can install the infectiousR package from CRAN with the following R function:

```R

install.packages("infectiousR")

```

Load the Package

```R

library(infectiousR)

```

Functions for infectiousR

The infectiousR package provides several core functions to retrieve real-time infectious disease data from the disease.sh API. Below is a list of the main API-access functions included in the package:

  • get_global_covid_stats() – Retrieves global COVID-19 statistics, including total cases, deaths, recoveries, and more.

  • get_covid_stats_by_country_name() – Fetches COVID-19 statistics for a specific country by name (e.g., "Brazil", "India").

  • get_covid_stats_by_country() – Retrieves COVID-19 data for all countries.

  • get_covid_stats_by_continent() – Retrieves COVID-19 data grouped by continent.

  • get_us_states_covid_stats() – Returns COVID-19 statistics for all U.S. states.

  • get_covid_stats_for_state() – Retrieves data for specified U.S. states (e.g., "NEW YORK", "california").

  • get_influenza_cdc_ili() – Accesses influenza-like illness (ILI) data from the CDC.

  • view_datasets_infectiousR() – Lists all curated datasets available in the infectiousR package.

Dataset Suffixes

Each dataset in infectiousR is labeled with a suffix to indicate its type and structure:

  • _df: A standard data frame.

  • _tbl_df: A tibble, a modern version of a data frame with better formatting and functionality.

  • _ts: A time series.

Datasets Included in infectiousR

In addition to API functions, infectiousR includes several preloaded datasets that provide valuable insights into various aspects of infectious diseases such as influenza, measles, dengue, Ebola, tuberculosis, meningitis,AIDS, and others:

  • spanish_flu_df: Contains daily mortality records from the 1918 influenza pandemic.

  • fungal_infections_df: Provides clinical treatment outcomes for systemic fungal infections.

  • aids_azt_df: Documents AIDS symptom progression and zidovudine (AZT) treatment responses.

  • meningitis_df: Records meningococcal disease cases with treatment response metadata (includes missing data indicators).

Example Code:

```R

Load the package

library(infectiousR)

List all datasets in the package

viewdatasetsinfectiousR()

Load dataset

data(spanishfludf)

Preview the dataset

head(spanishfludf)

Open in Viewer

View(spanishfludf)

```

Owner

  • Name: Renzo Cáceres Rossi
  • Login: lightbluetitan
  • Kind: user
  • Location: Lima, Perú

Soy un fanatico del Lenguaje de programación R y RMarkdown

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • cran 387 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: infectiousR

Access Infectious and Epidemiological Data via 'disease.sh API'

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 387 Last month
Rankings
Dependent packages count: 26.2%
Dependent repos count: 32.3%
Average: 48.3%
Downloads: 86.5%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.1.0 depends
  • dplyr * imports
  • httr * imports
  • jsonlite * imports
  • lubridate * imports
  • utils * imports
  • ggplot2 * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests