R/iucnn_biome_features.R
iucnn_biome_features.Rd
Will code all species in the input file into biomes based on an intersection of the coordinates with a shape file. The biome scheme can be user provided or by default will download the WWF biomes.
iucnn_biome_features(
x,
species = "species",
lon = "decimallongitude",
lat = "decimallatitude",
biome_input = NULL,
biome_id = "BIOME",
download_folder = "feature_extraction",
remove_zeros = 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.
a simple features collection of geometry type polygon, contain polygons of different biomes. If NULL, the WWF biome scheme is downloaded from https://www.worldwildlife.org/publications/terrestrial-ecoregions-of-the-world
a character string. The name of the column with the biome names in biome_input. Default is "BIOME"
character string. The folder were to save the data used for feature extraction. Relative to the working directory. Set to NULL for the working directory
logical. If TRUE biomes without occurrence of any species are removed from the features. Default = FALSE
a data.frame of climatic features
If biome_input is NULL this will download the WWF biome scheme from https://www.worldwildlife.org/publications/terrestrial-ecoregions-of-the-world and save them in the working directory
Other Feature preparation:
iucnn_bias_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_biome_features(dat)
}