Description Usage Arguments Value Examples
View source: R/createDistance.R
Create distance matrix for a completely connected network
1 | createDistance(coordMatrix)
|
coordMatrix |
A matrix containing all the x and y coordinates of the network vertexes |
A square matrix containing the Euclidean distances between all vertexes, assuming that the network is completely connected.
1 2 | coordMatrix <- matrix(c(0,10,15,20,30,30,15,15),ncol = 2)
createDistance(coordMatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.