Use the sampbias method to assess the geographic sampling bias at the locations where a species is collected and the range of sampling bias for all records per species.Values summarized per species are the median and the 0.05 to 0.95 percentiles.

iucnn_bias_features(
  x,
  species = "species",
  lon = "decimallongitude",
  lat = "decimallatitude",
  res = 0.5,
  ras = NULL,
  plot = TRUE
)

Arguments

x

a data.frame of species occurrence records including three columns with species name, longitudinal coordinates and latitudinal coordinates (both decimal).

species

a character string. The name of the column with the species names.

lon

a character string. The name of the column with the longitude.

lat

a character string. The name of the column with the latitude.

res

numeric. The resolution of the default resolution to calculate sampling bias. In decimal degrees.

ras

a SpatRaster object. Alternative to res, a sample SpatRaster to calculate sampling bias. Needs to use the same CRS as the coordinates in x.

plot

logical. Should the results of the sampbias analysis be plotted for diagnostics?

Value

a data.frame of bias features

Details

See the ?sampbias::calculate_bias for details.

Examples

if (FALSE) {
dat <- data.frame(species = c("A", "b"),
                  decimallongitude = runif(200, 10, 15),
                  decimallatitude = runif(200, -5, 5))
iucnn_bias_features(dat)

}