View source: R/centralityFunctions.R
mat2vec | R Documentation |
Converts a weights matrix to a vector of weights. If the matrix is symmetrical only upper triangle values are returned in the vector.
mat2vec(x, diag = FALSE, tol = 1e-10)
x |
A weights matrix |
diag |
Logical: should diagonal values be included? |
tol |
Tolerance level |
Sacha Epskamp <mail@sachaepskamp.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.