Description Usage Arguments Details Value Author(s)
Function to create randomized sampling points within spatial polygons, potentially with additional constraints such as roads
1 | sampPoints(n, area, dmin, name = "pnt", seed = 123)
|
n |
number of points desired |
area |
the spatial polygons within which points will be made |
dmin |
minimum distance between points |
name |
name to be applied to points in the form <name>_01, <name>_02, ... |
seed |
random seed |
This function uses spatstat::rSSI
to generate points. Note that if
spatstat::rSSI
cannot return the desired number of points it will issue a
warning but not an error. If the desired number of points cannot be generated this
is likely because dmin
is too big for the area
and one or both should
be adjusted.
A SpatialPointsDataFrame
containing randomized sampling points
including a column called name
that is neccesary for output to some formats
Andy Rominger <ajrominger@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.