Learn R Programming

⚠️There's a newer version (3.2.0) of this package.Take me there.

denguedatahub

The goal of denguedatahub is to provide the research community with a unified dataset by collecting worldwide dengue-related data, merged with exogenous variables helpful for a better understanding of the spread of dengue and the reproducibility of research.

Check out the website at https://denguedatahub.netlify.app/

Installation

You can install the development version of denguedatahub from GitHub with:

install.packages("denguedatahub")
# install.packages("devtools")
devtools::install_github("thiyangt/denguedatahub")

Example

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

library(tsibble)
#> 
#> Attaching package: 'tsibble'
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, union
library(denguedatahub)
head(level_of_risk)
#> # A tibble: 6 × 3
#>   country      level_of_risk       region
#>   <fct>        <fct>               <fct> 
#> 1 Angola       Sporadic/Uncertain  Africa
#> 2 Benin        Sporadic/Uncertain  Africa
#> 3 Burkina Faso Frequent/Continuous Africa
#> 4 Burundi      Sporadic/Uncertain  Africa
#> 5 Cameroon     Sporadic/Uncertain  Africa
#> 6 Cape Verde   Sporadic/Uncertain  Africa

Sri Lanka Weekly Dengue Cases

head(srilanka_weekly_data)
#> # A tibble: 6 × 6
#>    year  week start.date end.date   district    cases
#>   <dbl> <dbl> <date>     <date>     <chr>       <dbl>
#> 1  2006    52 2006-12-23 2006-12-29 Colombo        71
#> 2  2006    52 2006-12-23 2006-12-29 Gampaha        12
#> 3  2006    52 2006-12-23 2006-12-29 Kalutara       12
#> 4  2006    52 2006-12-23 2006-12-29 Kandy          20
#> 5  2006    52 2006-12-23 2006-12-29 Matale          4
#> 6  2006    52 2006-12-23 2006-12-29 NuwaraEliya     1

World

library(tidyverse)
world_annual |>
  filter(region=="Afghanistan") |>
  head()
#>       long      lat group order      region subregion code year incidence
#> 1 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1990     23371
#> 2 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1991     25794
#> 3 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1992     29766
#> 4 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1993     32711
#> 5 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1994     34268
#> 6 74.89131 37.23164     2    12 Afghanistan      <NA>  AFG 1995     35823
#>   dengue.present
#> 1            yes
#> 2            yes
#> 3            yes
#> 4            yes
#> 5            yes
#> 6            yes

Copy Link

Version

Install

install.packages('denguedatahub')

Monthly Downloads

402

Version

2.1.1

License

GPL-3

Maintainer

Thiyanga S. Talagala

Last Published

September 22nd, 2024

Functions in denguedatahub (2.1.1)

philippines_daily_data

Daily number of dengue fever infections in Philippines
filter_year_wer

Filter links corresponds to a specific year using the function output get_address
srilanka_weekly_data

Weekly number of dengue fever infections in Sri Lanka
get_addresses

Extract links of all downloadable files on a webpage
taiwan_dengue

Indigenous and imported dengue cases in Taiwan, 1987-2023.
get_pdflinks_srilanka

Get URLs of weekly epidemiological reports from Epidemiology Unit, Ministry of Health, Sri Lanka (url https://www.epid.gov.lk/weekly-epidemiological-report/weekly-epidemiological-report)
cdc_travel_associated_dengue_cases

Travel associated dengue cases by year, 2010 - 2023
cdc_usa_dengue_infection

Annual number of dengue fever infections in the USA
india_annual_data

DENGUE/DHF situation in India since 2017
download_pdfwer_srilanka

Download and save weekly epidemiological reports from Epidemiology Unit, Ministry of Health, Sri Lanka (url https://www.epid.gov.lk/weekly-epidemiological-report/weekly-epidemiological-report)
sl_sites

Type and proportion of breeding habitats positive for Aedes aegypti mosquitoes, across provinces in Sri Lanka, 2017.
sl_dengue_serotype

Identification of dengue serotypes circulating in Sri Lanka
world_annual

Annual number of dengue fever infections around the world
korea_dengue

Imported dengue cases in Korea
sl_annual

Annual reported dengue cases in Sri Lanka
singapore_weekly_data

Weekly number of dengue fever infections in Sri Lanka
level_of_risk

Level of Dengue risk around the world
convert_slwer_to_tidy

Read weekly epidemiological reports and convert dengue data into tidy format
china_annual_data

Dengue related data in China
cdc_local_dengue_cases

Locally acquired dengue cases by year, 2010 - 2023
cdc_dengue_countyyear

All dengue cases by county of residence in US states and territories, 2010 - 2023
min_max

Apply min-max transformation
cdc_dengue_agesex

All dengue cases by age group and sex in US states and territories, 2010 - 2023
cdc_casesby_week

All dengue cases by week in US states and territories, 2010 - 2023
americas_annual_data

Dengue and severe dengue cases and deaths for subregions of the Americas
convert_srilanka_wer_to_tidy

Read weekly epidemiological reports and convert dengue data into tidy format
cdc_dengue_casesbyjurisdiction

All dengue cases by jurisdiction of residence in US states and territories, 2010 - 2023