R/iucnn_geography_features.R
iucnn_geography_features.Rd
Calculates the number of occurrences, number of unique occurrences, mean latitude, mean longitude, latitudinal range, longitudinal range, eoo, aoo and hemisphere as input features for IUCNN from a list of species occurrences.
iucnn_geography_features(
x,
species = "species",
lon = "decimallongitude",
lat = "decimallatitude",
rescale = TRUE,
verbose = FALSE
)
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.
logical. If TRUE, the geographic features are rescaled. This is recommended to run IUCNN, and the default. If FALSE, raw (human readable) feature values are returned.
logical. If TRUE, progress messages will be displayed. Default = FALSE.
a data.frame of geographic features
Coordinate ranges are 90% quantiles, for species with less than three occurrences EOO is set to AOO.
Other Feature preparation:
iucnn_bias_features()
,
iucnn_biome_features()
,
iucnn_climate_features()
,
iucnn_cnn_features()
,
iucnn_footprint_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_geography_features(dat)
}