Skip to content

Commit

Permalink
Add ebola dataset from intro course.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisc1 committed Nov 5, 2024
1 parent 136352a commit d956de4
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 2 deletions.
22 changes: 22 additions & 0 deletions R/ebola_linelist_2014_doc.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#' @title Fictional Ebola linelist data from fSierra Leone, 2014
#'
#' @description
#' Fictional linelist data based on the real emergence of Ebola in West Africa in 2014.
#'
#' @details
#' This is a case linelist which contains fictional individual level data from one country
#' on clinical, laboratory and epidemiological information.
#' It is intended for use as part of Applied Epi training courses,
#' alongside \link{mpox_aggregate_table} (cumulative case totals by date and country).
#'
#'
#' @source Fictional data provided by Applied Epi for training purposes
#'
#' This is version 1.0.
#'
#' This data is English.
#'
#' This data is licensed under [CC by-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
#'
#' @docType data
"ebola_linelist_20141201"
7 changes: 6 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ reference:

- subtitle: Fictional linelist data from Salmonella outbreak in Stegen, Germany (1998) - English
contents:
- stegentira_data
- stegentira_data

- subtitle: Fictional linelist data from Ebola outbreak in Sierra Leone (2014) - English
contents:
- ebola_linelist_20141201

12 changes: 12 additions & 0 deletions data-raw/ebola_linelist_20141201.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## code to prepare `ebola_linelist_20141201` dataset goes here
# This creates an .rda format of the ebola_linelist_20141201.rds file

# Define the path to the Excel file in inst/extdata
file_path <- system.file("extdata", "ebola_linelist_20141201.rds", package = "appliedepidata")

# Read in the RDS file using rio
ebola_linelist_20141201 <- rio::import(file_path)

usethis::use_data(ebola_linelist_20141201, overwrite = TRUE)


Binary file added data/ebola_linelist_20141201.rda
Binary file not shown.
Binary file added inst/extdata/ebola_linelist_20141201.rds
Binary file not shown.
Binary file modified inst/extdata/tableoftables.xlsx
Binary file not shown.
31 changes: 31 additions & 0 deletions man/ebola_linelist_20141201.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stegentira_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d956de4

Please sign in to comment.