Description Usage Arguments Value Author(s) Examples
View source: R/make_duration_size_table.R
Make seeding event duration vs event size table
1 2 3 4 5 6 7 8 | make_duration_size_table(
results = NULL,
required_var = c("event_duration", "event_size", "R0"),
spread_var = "event_duration",
spread_value = "R0",
rename_var = "event_size",
renamed_var = "Transmission event size vs. Transmission event duration (days)"
)
|
results |
The output from |
required_var |
A character string of variables to select for the table. |
spread_var |
A character variable indicating the variable to spread. |
spread_value |
A character variable to use as the spreading value. |
rename_var |
A character variable to rename. |
renamed_var |
A character variable indicating the name of the renamed variable |
A data.frame comparing transmission event size with duration
Sam Abbott
1 2 3 4 5 6 7 8 9 10 11 | ## Example
results <- data.frame(R0 = runif(10, 0, 1),
event_duration = 1:10,
event_size = rep(c(1,2), 5),
tmp = 1:10)
make_duration_size_table(results)
## Code
make_duration_size_table
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.