assess_empirical_threshold: Assess the spatial uncertainty

View source: R/assess_empirical_threshold.R

assess_empirical_thresholdR Documentation

Assess the spatial uncertainty

Description

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).

Usage

assess_empirical_threshold(
  input_grid,
  input_occ_grid,
  input_occ_random,
  flag_degree = FALSE,
  flag_plot = FALSE
)

Arguments

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.

Author(s)

Xiao Feng

Examples

 ## 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)

BiogeographyLab/gridder documentation built on April 21, 2024, 2:32 a.m.