Learn R Programming

EpiContactTrace (version 0.8.8)

ContactTrace-class: Class "ContactTrace"

Description

Class to handle contact tracing.

Arguments

Objects from the Class

Objects can be created by calls of the form new("ContactTrace",root, ingoingContacts, outgoingContacts,...)

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.

Examples

Run this code
## Load data
data(transfers)

## Perform contact tracing
contactTrace <- Trace(movements = transfers,
                      root = 2645,
                      tEnd = '2005-10-31',
                      days = 90)

## Show structure
str(contactTrace)

Run the code above in your browser using DataLab