View source: R/sample_existing_clhs.R
sample_existing_clhs | R Documentation |
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,
...
)
existing |
sf 'POINT'. Existing plot network. |
nSamp |
Numeric. Number of desired samples. |
cost |
Numeric/Character. Index or name of covariate within |
iter |
Numeric. Value giving the number of iterations within the Metropolis-Hastings process. |
details |
Logical. If |
filename |
Character. Path to write output samples. |
overwrite |
Logical. Choice to overwrite existing |
... |
Additional arguments for clhs sampling. See |
A subsampled SpatialPointsDataFrame object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.