Perform sampling at a constant density over all polygons within a SpatialPolygonsDataFrame object.
constantDensitySampling(x, polygon.id='pID', parallel=FALSE, cores=NULL,
n.pts.per.ac=1, min.samples=5, sampling.type='regular')
a SpatialPointsDataFrame
object
a SpatialPolygonsDataFrame
object in a projected CRS with units of meters
name of attribute in x
that contains a unique ID for each polygon
invoke parallel back-end
number of CPU cores to use for parallel operation
requested sampling density in points per acre (results will be close)
minimum requested number of samples per polygon
sampling type
D.E. Beaudette
sample.by.poly