Description Usage Arguments Value
View source: R/generateOutbreak.R
A function to create a sample dataset of an outbreak
1 2 3 | generateOutbreak(n = 100, percentageCases = 0.5, pathogen = "Salmonella",
type = "pointsource", startdate = "2013-09-23", enddate = "2013-10-04",
dataquality = "messy")
|
n |
Number of persons |
percentageCases |
Number between 0 and 1 representing the percentage of cases |
pathogen |
Quoted character value of the pathogen causing the outbreak. Possible values are: "Salmonella", "Ebola", "Norovirus", "Measles", "Influenza" |
startdate |
Quoted character value of the first possible date of onset of disease with the format "YYYY-MM-DD". For example: "2013-09-23" |
dataquality |
Quoted character value of the output quality of the dataset. Possible values are: "good", "standard", "messy". "standard" introduces Na Values, "messy" introduces NA and other random values. |
tpye |
Quoted character value of type of outbreak. Possible values are: "pointsource", "propageted", "continuing" |
startdate |
Quoted character value of the last possible date of onset of disease with the format "YYYY-MM-DD". For example: "2013-09-23" |
A dataset of a random outbreak
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.