createDistance: Create distance matrix for a completely connected network

Description Usage Arguments Value Examples

View source: R/createDistance.R

Description

Create distance matrix for a completely connected network

Usage

1
createDistance(coordMatrix)

Arguments

coordMatrix

A matrix containing all the x and y coordinates of the network vertexes

Value

A square matrix containing the Euclidean distances between all vertexes, assuming that the network is completely connected.

Examples

1
2
coordMatrix <- matrix(c(0,10,15,20,30,30,15,15),ncol = 2)
createDistance(coordMatrix)

locationgamer documentation built on Dec. 18, 2020, 5:08 p.m.