Simulates clustered samples by simulating a number of randomly sampled clusters, and then randomly simulate points within a buffer of the clusters.

clustered_sample(x, size, nclusters, radius, ...)

Arguments

x

sf/sfc polygon where samples will be simulated.

size

Number of samples to create.

nclusters

Number of clusters to simulate.

radius

Radius of the buffer for intra-cluster simulation.

...

Additional arguments passed to terra::spatSample().