View source: R/sample.by.poly.R
constantDensitySampling | R Documentation |
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')
x |
a |
polygon.id |
name of attribute in |
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 |
a SpatialPointsDataFrame
object
This function expects that x
has coordinates associated with a projected CRS and units of meters.
D.E. Beaudette
sample.by.poly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.