sampPoints: Create randomized sampling points

Description Usage Arguments Details Value Author(s)

View source: R/sampPoints.R

Description

Function to create randomized sampling points within spatial polygons, potentially with additional constraints such as roads

Usage

1
sampPoints(n, area, dmin, name = "pnt", seed = 123)

Arguments

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

Details

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.

Value

A SpatialPointsDataFrame containing randomized sampling points including a column called name that is neccesary for output to some formats

Author(s)

Andy Rominger <ajrominger@gmail.com>


role-model/CaatingaArthropods documentation built on Jan. 9, 2020, 12:36 a.m.