MyNixOS website logo
Description

A Tidy Format Datasets of Dengue by Country.

Provides a weekly, monthly, yearly summary of dengue cases by state/ province/ country.

R-CMD-check

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
Metadata

Version

2.1.1

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