constantDensitySampling: Sample Polygons at a Fixed Density

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

constantDensitySamplingR Documentation

Sample Polygons at a Fixed Density

Description

Perform constant-density sampling of polygons.

Usage

constantDensitySampling(
  x,
  polygon.id = "pID",
  n.pts.per.ac = 1,
  min.samples = 5,
  sampling.type = "regular"
)

Arguments

x

either SpatVector or object that can be coerced into one, should contain polygons registered to a planar coordinate reference system

polygon.id

character, name of column which contains a unique ID for each polygon

n.pts.per.ac

numeric, sampling density in "points per acre"

min.samples

integer, enforced minimum number of samples per polygon

sampling.type

character, sampling type passed to terra::spatSample()

Value

SpatVector of sample points

Author(s)

D.E. Beaudette


ncss-tech/sharpshootR documentation built on March 6, 2025, 1:07 a.m.