sample_existing_balanced {sgsR} | R Documentation |
Sample Existing Data Using Balanced Sampling
Description
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.
Usage
sample_existing_balanced(
existing,
nSamp,
algorithm = "lpm2_kdtree",
p = NULL,
filename = NULL,
overwrite = FALSE,
...
)
Arguments
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 |
Value
An sf
object that is a sub-sample of existing