Learn R Programming

EpiModel (version 2.5.0)

as.network.transmat: Convert transmat Infection Tree into a network Object

Description

Converts a transmission matrix from the get_transmat function into a network::network class object.

Usage

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

Value

A network::network object.

Arguments

x

An object of class transmat to be converted into a network class object.

...

Unused.

Details

When converting from a transmat to a network object, this functions copies the edge attributes within the transmission matrix ('at', 'infDur', 'transProb', 'actRate', and 'finalProb') into edge attributes on the network.