Learn R Programming

spNetwork (version 0.4.4.3)

randomize_distmatrix2: Points on network randomization simplified

Description

Randomize location of points on a network.

Usage

randomize_distmatrix2(graph, edge_df, n, resolution, nsim, start_vert = NULL)

Value

A numeric matrix with the distances between points

Arguments

graph

An graph object from igraph

edge_df

A DataFrame describing the edges

n

The number of point

resolution

The maximum size of the network edges

nsim

The number of distance matrices to generate

start_vert

The vertices from which the distances will be calculated. if null, then the distances are calculated from the generated locations.

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab