| ContactTrace-class {EpiContactTrace} | R Documentation |
Class "ContactTrace"
Description
Class to handle contact tracing.
Details
The ContactTrace class holds information for the ingoing
and outgoing contact chain for a specific root within the time
window used for contact tracing.
Slots
rootA
charactervector of length one with the identifier of the root.ingoingContactsA
Contactsobject with the contacts for the ingoing contact chain.outgoingContactsA
Contactsobject with the contacts for the outgoing contact chain.
Objects from the Class
Objects can be created by calls
of the form new("ContactTrace",root, ingoingContacts,
outgoingContacts,...)
Examples
## Load data
data(transfers)
## Perform contact tracing
contactTrace <- Trace(movements = transfers,
root = 2645,
tEnd = "2005-10-31",
days = 90)
## Show structure
str(contactTrace)
[Package EpiContactTrace version 0.17.0 Index]