Data package tracking the course of the cholera epidemic in Malawi (2023-24)
# choleramalawi
The goal of choleramalawi is to analyse the progress of the Cholera
epidemic in Malawi (2023-24)
## Installation
You can install the development version of choleramalawi from
GitHub with:
``` r
# install.packages("devtools")
devtools::install_github("openwashdata/choleramalawi")
```
``` r
## Run the following code in console if you don't have the packages
## install.packages(c("dplyr", "knitr", "readr", "stringr", "gt", "kableExtra"))
library(dplyr)
library(knitr)
library(readr)
library(stringr)
library(gt)
library(kableExtra)
library(rnaturalearth)
library(rnaturalearthdata)
library(sf)
library(RColorBrewer)
#devtools::load_all()
```
Alternatively, you can download the individual datasets as a CSV or XLSX
file from the table below.
| dataset | CSV | XLSX |
|:---|:---|:---|
| choleramalawi | Download CSV | Download XLSX |
## Data
The package provides access to one dataset `choleramalawi`. It contains
data on the progress of the cholera epidemic in each district of Malawi
during 2022-23. The data focuses on cases and deaths for every week as
well as cumulative cases and deaths.
``` r
library(choleramalawi)
```
### choleramalawi
The dataset `choleramalawi` contains data about the progress of the
cholera epidemic in Malawi (2022-23). It has 1886 observations and 8
variables
``` r
choleramalawi |>
head(3) |>
gt::gt() |>
gt::as_raw_html()
```
epi_week
week_start
week
cases
deaths
c_cases
c_deaths
district
21
13
2022-05-23
9
1
9
1
Balaka
22
14
2022-05-30
2
0
11
1
Balaka
23
15
2022-06-06
10
2
21
2
Balaka
For an overview of the variable names, see the following table.
variable_name
variable_type
description
epi_week
character
Week of the epidemic
week_start
character
Week of the year
week
double
Date for the week
cases
character
No. of recorded cases
deaths
character
No. of recorded deaths
c_cases
character
Cumulative cases since the start of the epidemic …