constantDensitySampling: Constant Density Sampling

View source: R/sample.by.poly.R

constantDensitySamplingR Documentation

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')

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

Value

a SpatialPointsDataFrame object

Note

This function expects that x has coordinates associated with a projected CRS and units of meters.

Author(s)

D.E. Beaudette

See Also

sample.by.poly


sharpshootR documentation built on Aug. 24, 2023, 5:07 p.m.