R/iucnn_bias_features.R
iucnn_bias_features.Rd
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
)
a data.frame of species occurrence records including three columns with species name, longitudinal coordinates and latitudinal coordinates (both decimal).
a character string. The name of the column with the species names.
a character string. The name of the column with the longitude.
a character string. The name of the column with the latitude.
numeric. The resolution of the default resolution to calculate sampling bias. In decimal degrees.
a SpatRaster object. Alternative to res, a sample SpatRaster to calculate sampling bias. Needs to use the same CRS as the coordinates in x.
logical. Should the results of the sampbias analysis be plotted for diagnostics?
a data.frame of bias features
See the ?sampbias::calculate_bias for details.
Other Feature preparation:
iucnn_biome_features()
,
iucnn_climate_features()
,
iucnn_cnn_features()
,
iucnn_footprint_features()
,
iucnn_geography_features()
,
iucnn_phylogenetic_features()
,
iucnn_prepare_features()
,
iucnn_prepare_phy()
if (FALSE) {
dat <- data.frame(species = c("A", "b"),
decimallongitude = runif(200, 10, 15),
decimallatitude = runif(200, -5, 5))
iucnn_bias_features(dat)
}