Description Usage Arguments Details Value Author(s)
Converts a square adjacency matrix into a data frame with three columns representing an edge list. Columns are: actor, receiver and weight.
1 | mat.to.edgl(M, sym = FALSE, erase.diag = TRUE)
|
M |
a square adjacency matrix. |
sym |
if TRUE, it extracts the lower triangle of the matrix only. |
erase.diag |
if TRUE, it omits diagonals. |
This function convert a matrix into an edgelist.
a data frame representing an edge list.
Sebastian Sosa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.