un.direct | R Documentation |
Converts a directed network to an undirected network
un.direct(A, diagonal = 0)
A |
Matrix or data frame. Adjacency matrix (network matrix) |
diagonal |
Numeric.
Number to be placed on the diagonal.
Defaults to |
Returns a symmetric adjacency matrix
Alexander Christensen <alexpaulchristensen@gmail.com>
# Pearson's correlation only for CRAN checks A <- TMFG(neoOpen, normal = FALSE)$A # create a directed network dir <- A * sample(c(0,1), size = length(A), replace = TRUE) # undirect the directed network undir <- un.direct(dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.