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

View source: R/dendo.R

as.network.transmatR Documentation

Convert transmat Infection Tree into a network Object

Description

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

Usage

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

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.

Value

A network object.


EpiModel documentation built on July 9, 2023, 5:21 p.m.