Learn R Programming

sharpshootR (version 2.3)

constantDensitySampling: Constant Density Sampling

Description

Perform sampling at a constant density over all polygons within a SpatialPolygonsDataFrame object.

Usage

constantDensitySampling(x, polygon.id='pID', parallel=FALSE, cores=NULL, 
n.pts.per.ac=1, min.samples=5, sampling.type='regular')

Value

a SpatialPointsDataFrame object

Arguments

x

a SpatialPolygonsDataFrame object in a projected CRS with units of meters

polygon.id

name of attribute in x that contains a unique ID for each polygon

parallel

invoke parallel back-end

cores

number of CPU cores to use for parallel operation

n.pts.per.ac

requested sampling density in points per acre (results will be close)

min.samples

minimum requested number of samples per polygon

sampling.type

sampling type

Author

D.E. Beaudette

See Also

sample.by.poly