Converts a transmission matrix from the get_transmat
function into a network::network
class object.
# S3 method for transmat
as.network(x, ...)
A network::network
object.
An object of class transmat
to be converted into a
network
class object.
Unused.
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.