Learn R Programming

simplifyNet (version 0.0.1)

net.as: 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)

Value

A network of the format specified by net.to.

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.

Author

Alexander Mercier