net.as {simplifyNet} | R Documentation |
Network format converter
Description
Convert a network in weighted adjacency matrix, edge list, or igraph to a weighted adjacency matrix, edge list, or igraph format.
Usage
net.as(network, net.to = "E_List", directed = FALSE)
Arguments
network |
Weighted adjacency matrix, weighted igraph network, or edge list formatted | n1 | n2 | weight | with colnames c("n1", "n2", "weight") .
|
net.to |
Specifics to what format the imputed network is to be converted:
(1) 'E_List' convert to an edge list of the format | n1 | n2 | weight | with colnames c("n1", "n2", "weight") .
(2) 'Adj' convert to a weighted adjacency matrix.
(3) 'igraph' convert to a weighted igraph object.
|
directed |
If TRUE , specifies that the inputted network is directed. Default is FALSE .
|
Value
A network of the format specified by net.to
.
Author(s)
Alexander Mercier
[Package
simplifyNet version 0.0.1
Index]