View source: R/sample_existing_balanced.R
sample_existing_balanced | R Documentation |
This function samples a given set of existing data using balanced sampling techniques, which ensures that each stratum or subgroup of data is proportionally represented in the sample.
sample_existing_balanced(
existing,
nSamp,
algorithm = "lpm2_kdtree",
p = NULL,
filename = NULL,
overwrite = FALSE,
...
)
existing |
sf 'POINT'. Existing plot network. |
nSamp |
Numeric. Number of desired samples. |
algorithm |
Character. One of |
p |
Numeric. Vector with length equal to the number of cells in |
filename |
Character. Path to write stratified raster to disc. |
overwrite |
Logical. Specify whether |
... |
Additional arguments to pass to the selected sampling algorithm.
This is leveraged when used by |
An sf
object that is a sub-sample of existing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.