Description Usage Arguments Value Author(s) Examples
This function combines data of a food distribution network (including cases
as terminal nodes) and additional information on the nodes (typically a
linelist) to create a dibbler
object. The S3 class dibbler
is
an extension of the epicontacts
objects implemented in the similarly
named package.
1 | make_dibbler(net, nodes_data, from = 1L, to = 2L, id = 1L)
|
net |
A |
nodes_data |
A |
from |
An integer or character string indicating the column in
|
to |
An integer or character string indicating the column in
|
id |
An integer or character string indicating the column in
|
a list of data suitable for input for dibbler
Thibaut Jombart thibautjombart@gmail.com
1 2 3 4 5 6 7 8 9 | if (require(outbreaks)) {
v_data <- s_enteritidis_pt59$graph
n_data <- data.frame(id = names(s_enteritidis_pt59$cluster),
cluster = s_enteritidis_pt59$cluster)
x <- make_dibbler(v_data, n_data)
x
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.