Learn R Programming

EpiModel (version 2.0.1)

as.network.transmat: Converts transmat infection tree into a network object

Description

Converts the edges of the infection tree described in the transmat object into a network object, copying in appropriate edge attributes for 'at', 'infDur', 'transProb', 'actRate', and 'finalProb' and constructing a vertex attribute for 'at'.

Usage

# S3 method for transmat
as.network(x, ...)

Arguments

x

an object of class transmat to be converted into a network object

...

unused