random_points: Random Cartesian Points

View source: R/Utility_functions.R

random_pointsR Documentation

Random Cartesian Points

Description

Creates a two-column matrix where the first column is x-values and the second column is y-values and each row represents a point. Can be used to randomly generate a spatially explicit list of sites.

Usage

random_points(n.sites, x.max, y.max)

Arguments

n.sites

Numeric, the number of sites to generate

x.max, y.max

Numeric, the maximum distance in x or y directions that sites can be placed.

Value

Returns a two-column matrix of coordinate points.

Examples

random_points(20, 100, 100)


trevorjwilli/CommSimABCR documentation built on Feb. 4, 2025, 1:22 a.m.