rdists: Generate random distance matrices

View source: R/dists.R

rdistsR Documentation

Generate random distance matrices

Description

Generate random distance matrices

Usage

rdists(N, names, scale = 100)

Arguments

N

Number of locations.

names

Names of locations.

scale

Scale of the distance matrices. Default is 100.

Details

This function generates random distance matrices using rnorm. scale controls the scale of the distance matrices.

Value

List of signed distances.

Examples

set.seed(123)
rdists(3)
rdists(3, scale = 1)
rdists(3, names = LETTERS[1:3])

mcgf documentation built on June 29, 2024, 9:09 a.m.