iucnn_geography_features: Extract Geographic Features from Occurrence Records

View source: R/iucnn_geography_features.R

iucnn_geography_featuresR Documentation

Extract Geographic Features from Occurrence Records

Description

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.

Usage

iucnn_geography_features(
  x,
  species = "species",
  lon = "decimallongitude",
  lat = "decimallatitude",
  rescale = TRUE,
  verbose = FALSE
)

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.

rescale

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.

verbose

logical. If TRUE, progress messages will be displayed. Default = FALSE.

Details

Coordinate ranges are 90% quantiles, for species with less than three occurrences EOO is set to AOO.

Value

a data.frame of geographic features

See Also

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

Examples

## Not run: 
dat <- data.frame(species = c("A","B"),
                  decimallongitude = runif(200,10,15),
                  decimallatitude = runif(200,-5,5))

iucnn_geography_features(dat)

## End(Not run)


azizka/IUCNN documentation built on March 29, 2024, 9:38 a.m.