This function takes an existing sf object and returns a random sub-sample of size nSamp.
sample_existing_clhs(
existing,
nSamp,
raster = NULL,
cost = NULL,
iter = 10000,
details = FALSE,
filename = NULL,
overwrite = FALSE,
...
)A subsampled SpatialPointsDataFrame object.
sf 'POINT'. Existing plot network.
Numeric. Number of desired samples.
Numeric/Character. Index or name of covariate within mraster to be used to constrain cLHS sampling.
If default (NULL), a cost constraint is not used.
Numeric. Value giving the number of iterations within the Metropolis-Hastings process.
Logical. If FALSE (default) output is only
stratification raster. If TRUE return a list where $details is additional
stratification information and $raster is the output stratification spatRaster.
Character. Path to write output samples.
Logical. Choice to overwrite existing filename if it exists.
Additional arguments for clhs sampling. See clhs.