st_poly_sample: Sample points within polygons

Description Usage Arguments Value

View source: R/st_poly_sample.R

Description

Sample points within polygons

Usage

1
st_poly_sample(x, n, min_dist = NULL, n_mod = c(5, 2), ...)

Arguments

x

A sf polygon object.

n

Number of point samples per point.

min_dist

Optional. Required minimum distance for sampled points in meters.

n_mod

Numeric of length two determining how n is increased for sampling bbox of each polygon. The following formula is used: n+n_mod[1]*n_mod[2].

...

Arguments passed on to st_sample

Value

A sf object of points representing samples within input polygons.


juoe/spatialtools documentation built on May 25, 2019, 6:25 p.m.