sample_existing_srs {sgsR} | R Documentation |
Randomly sample from an existing dataset
Description
This function takes an existing sf
object and returns a random sub-sample of size nSamp
.
Usage
sample_existing_srs(existing, nSamp, filename = NULL, overwrite = FALSE)
Arguments
existing |
sf 'POINT'. Existing plot network. |
nSamp |
Numeric. Number of desired samples. |
filename |
Character. Path to write output samples. |
overwrite |
Logical. Choice to overwrite existing |
Value
A data frame or spatial data frame containing the random sample.
[Package sgsR version 1.4.5 Index]