sample.by.poly: Sample a Single Polygon at a Target Density

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

sample.by.polyR Documentation

Sample a Single Polygon at a Target Density

Description

Sample a single SpatVector polygon at a target density in "samples / acre".

Usage

sample.by.poly(
  p,
  n.pts.per.ac = 1,
  min.samples = 5,
  sampling.type = "regular",
  p4s = NULL
)

Arguments

p

SpatVector containing a single polygon feature

n.pts.per.ac

numeric, sampling density in "points per acre"

min.samples

integer, enforced minimum number of samples per polygon

sampling.type

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

p4s

output from terra::crs()

Value

SpatVector of sample points

Author(s)

D.E. Beaudette


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