View source: R/genRandomPnts.R
genRandomPnts | R Documentation |
This function generate random points inside polygons based on distance constraints. The function is based on spatstat::rSSI.
genRandomPnts(x, seed = 123, dist = NULL, n = Inf, maxit = 100, quiet = TRUE, cores = 1, ...)
x |
object of class sf |
seed |
seed parameter for replication. Default: 123 |
dist |
inhibition distance of spatstat::rSSI. Default: NULL |
n |
maximum number of points allowed. If n is finite, stop when the total number of points in the point pattern reaches n. If n is infinite (the default), stop only when it is apparently impossible to add any more points |
maxit |
number of rejected proposals after which the algorithm should terminate. Default: 100 |
quiet |
no outputs in console. Default: TRUE |
cores |
number of cores for parallel processing. Default: 1 (sequential) |
... |
additional parameters for spatstat::rSSI-function |
Randomly sampled points of class sf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.