to_matrix | R Documentation |
This function translates a Population to a matrix representing either the adjacency structure, the shortest path, or edge weights.
to_matrix(x, mode = c("adjacency", "shortest path", "edge weight")[1], ...)
x |
An object of type |
mode |
The kind of matrix to make. At present, the following types are available:
|
... |
Optional arguemnts passed on to the distance functions. |
A matrix (KxK) in size (where K is the number of nodes)
Rodney J. Dyer <rjdyer@vcu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.