NetworkStructure | R Documentation |
NetworkStructure
Methods for function NetworkStructure
in package
EpiContactTrace to get the network tree structure from the
contact tracing.
NetworkStructure(object)
## S4 method for signature 'Contacts'
NetworkStructure(object)
## S4 method for signature 'ContactTrace'
NetworkStructure(object)
## S4 method for signature 'list'
NetworkStructure(object)
object |
A |
The contact tracing performs a depth first search starting at the
root. The NetworkStructure
gives the distance from root at
each node. The network tree structure given by the depth first
search is shown by show
.
A data.frame
with the following columns:
The root of the contact tracing
If the direction is ingoing, then inBegin equals inBegin in
Trace
else NA.
If the direction is ingoing, then inEnd equals inEnd in
Trace
else NA.
If the direction is outgoing, then outBegin equals
outBegin in Trace
else NA.
If the direction is outgoing, then outEnd equals outEnd in
Trace
else NA.
If the direction is ingoing, then direction equals 'in' else 'out'
The source of the contacts in the depth first search
The destination of the contacts in the depth first search
The distance from the destination to root in the depth first search
signature(object = "Contacts")
Get the network structure for the Contacts object.
signature(object = "ContactTrace")
Get the network structure for the ingoing and outgoing
Contacts
of a ContactTrace
object.
signature(object = "list")
Get the network structure for a list of ContactTrace
objects. Each item in the list must be a ContactTrace
object.
show
.
## Load data
data(transfers)
## Perform contact tracing
contactTrace <- Trace(movements = transfers,
root = 2645,
tEnd = "2005-10-31",
days = 90)
NetworkStructure(contactTrace)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.