Description Usage Arguments Value Examples
View source: R/matrixOperations.R
The number of elements of vec are the number of non-zero elements in the adjacency matrix. It performs the opposite operation of 'mat2vec_ix'.
1 | vec2mat(vec, directed, selfloops, n)
|
vec |
vector to be put in matrix form |
directed |
a boolean argument specifying whether object is directed or not. |
selfloops |
a boolean argument specifying whether the model should incorporate selfloops. |
n |
vector. if length(n)==1, n is the number of vertices. If length(n)==3 first element is number of vertices, second and third elements are number of vertices for row and column of bipartite matrix. |
matrix nxn generated from vector.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.