powered by
Generate random distance matrices
rdists(N, names, scale = 100)
List of signed distances.
Number of locations.
Names of locations.
Scale of the distance matrices. Default is 100.
This function generates random distance matrices using rnorm. scale controls the scale of the distance matrices.
rnorm
scale
set.seed(123) rdists(3) rdists(3, scale = 1) rdists(3, names = LETTERS[1:3])
Run the code above in your browser using DataLab