View source: R/assess_empirical_threshold.R
assess_empirical_threshold | R Documentation |
The function computes spatial uncertainty of a grid system by calculating the distance between grid centroids toward gridded coordinates and non-gridded coordinates (e.g. iNaturalist data).
assess_empirical_threshold(
input_grid,
input_occ_grid,
input_occ_random,
flag_degree = FALSE,
flag_plot = FALSE
)
input_grid |
Character vector. Path of a grid system (shapefile). |
input_occ_grid |
Character vector. Path of gridded occurrences (shapefile). |
input_occ_random |
Character vector. Path of non-gridded occurrences (inaturalist is used by default). |
flag_degree |
Logical. Parameter passed to raster::pointDistance. |
flag_plot |
Logical. If TRUE, coordinates (based on the crs of the grid system) should be in degrees; else they should represent planar ('Euclidean') space (e.g. units of meters). Default is FALSE. |
Xiao Feng
## Not run:
distance <- assess_empirical_threshold(input_grid = "data/2_clean_grid/grid_ID_2_polygon_masked.shp",
input_occ_grid = "data/france_datasetID10/0068190-210914110416597.csv",
input_occ_random = "data/iNaturalist_20211205/0071565-210914110416597.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.