Coerces a ResIN object to a network object (from the
network package used in the statnet ecosystem). The method
preserves edge-level columns from x$ResIN_edgelist as edge attributes
and node-level columns from x$ResIN_nodeframe as vertex attributes
whenever available.
Usage
# S3 method for class 'ResIN'
as.network(x, directed = FALSE, loops = FALSE, multiple = FALSE, ...)Arguments
- x
A
ResINobject.- directed
Logical; should the resulting network be directed? Defaults to
FALSE.- loops
Logical; allow self-loops? Defaults to
FALSE.- multiple
Logical; allow multiple edges? Defaults to
FALSE.- ...
Additional arguments passed to
network::as.network().
