View source: R/utils-existing.R
check_existing | R Documentation |
This function checks whether the existing sample data meets certain requirements for use in downstream analyses.
check_existing(existing, raster, nSamp, plot = FALSE, details = NULL)
existing |
sf 'POINT'. Existing plot network. |
raster |
SpatRaster. Raster to guide the location of the samples. If |
nSamp |
Numeric. Number of desired samples. |
details |
Logical. If |
If requirements are met, the function returns the prepared existing sample data. Otherwise, it raises a stop error with a relevant message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.