-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathREADME.Rmd
93 lines (70 loc) · 3.15 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
output: github_document
---
```{r setup, echo = FALSE, message=FALSE, results='hide'}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.align = "center",
fig.path = "man/figures/README-",
echo = TRUE,
fig.width = 8,
fig.height = 6
)
```
<!-- badges: start -->
[![R-CMD-check](https://github.com/reconverse/outbreaks/workflows/R-CMD-check/badge.svg)](https://github.com/reconverse/outbreaks/actions)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/outbreaks)](https://cran.r-project.org/package=outbreaks)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/outbreaks)](https://cran.r-project.org/package=outbreaks)
[![Downloads from Rstudio mirror](https://cranlogs.r-pkg.org/badges/grand-total/outbreaks)](https://www.r-pkg.org/pkg/outbreaks)
<!-- badges: end -->
<br>
# outbreaks: a compilation of disease outbreak data
This package compiles a series of publicly available disease outbreak data.
Data can be provided as R objects (loaded automatically when loading the package), text files distributed alongside the package, or functions generating a dataset.
The following R datasets are currently available:
```{r hidden, echo=FALSE, message=FALSE, results='hide'}
if(!require(printr)) warning("printr is not installed; displaying the content of 'data(...)' may not work")
```
```{r datalist}
data(package="outbreaks")
```
<br>
# Installing the package
To install the current stable, CRAN version of the package, type:
```{r install, eval=FALSE}
install.packages("outbreaks")
```
To benefit from the latest features and bug fixes, install the development, *github* version of the package using:
```{r install2, eval=FALSE}
devtools::install_github("reconverse/outbreaks")
```
Note that this requires the package *devtools* installed.
<br>
## Add your own data!
### How to add data?
We will try to create a better repository and data submission system at a later stage.
The purpose of the current package is only to share examplar datasets during the hackathon.
Acceptable forms are:
- as a `.RData` files in the `data/` folder (recommended)
- as a text file in the `inst/` folder
- as a function loading/assembling/simulating a dataset
### Naming Conventions
We use the lower case throughout, and snake_case (using underscores) to separate words for the files and dataset names, so that for a `RData` object, a new dataset woud look like: `my_new_data_RData'. Try using informative names, typically using the disease first. Whenever available, order fields as:
1. *disease*: mandatory
2. *location*: optional
3. *year*: optional
4. *sim*: mandatory if this is a simulated dataset; otherwise data is assume to be an actual outbreak
5. *other*: (any other relevant information)
<br>
### Contributors (by alphabetic order):
- [Eric Brown](https://github.com/eebrown)
- [Finlay Campbell](https://github.com/finlaycampbell)
- [Simon Frost](https://github.com/sdwfrost)
- [Thibaut Jombart](https://github.com/thibautjombart)
- Pierre Nouvellet
- Sang Woo Park
- [Juliet R.C. Pulliam](https://github.com/jrcpulliam)
- [Jakob Schumacher](https://github.com/jakobschumacher)
- Bertrand Sudre
Maintainer: Finlay Campbell (finlaycampbell93@gmail.com)