randomCoordinates: Create random coordinates for network vertexes

Description Usage Arguments Value Examples

View source: R/randomCoordinates.R

Description

Create random coordinates for network vertexes

Usage

1
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)

Arguments

nNodes

The number of vertexes/ nodes in the network

xMax

The maximum x-coordinate of the nodes in the network

xMin

The minimum x-coordinate of the nodes in the network

yMax

The maximum y-coordinate of the nodes in the network

yMin

The minimum y-coordinate of the nodes in the network

Value

A data frame with dimensions nNodes x 2 containing the x and y coordinates of the network's vertexes

Examples

1
2
3
4
5
6
nNodes <- 10
xMax <- 2000
xMin <- 0
yMax <- 3000
yMin <- 200
randomCoordinates(nNodes, xMax, xMin, yMax, yMin)

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