Learn R Programming

EpiContactTrace (version 0.18.0)

ContactTrace-class: Class "ContactTrace"

Description

Class to handle contact tracing.

Arguments

Slots

root

A character vector of length one with the identifier of the root.

ingoingContacts

A Contacts object with the contacts for the ingoing contact chain.

outgoingContacts

A Contacts object 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,...)

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