BIEN_ranges_box function

Download range maps that intersect a specified bounding box.

Download range maps that intersect a specified bounding box.

BIEN_ranges_box extracts range maps for a specified bounding box.

BIEN_ranges_box( min.lat, max.lat, min.long, max.long, directory = NULL, species.names.only = FALSE, return.species.list = TRUE, crop.ranges = FALSE, include.gid = FALSE, ... )

Arguments

  • min.lat: Minimum latitude of the ranges included.
  • max.lat: Maximum latitude of the ranges included.
  • min.long: Minimum longitude of the ranges included.
  • max.long: Maximum longitude of the ranges included.
  • directory: Directory that range maps should be saved in. If none is specified, range maps will be saved in the current working directory.
  • species.names.only: Return species names rather than spatial data? Default is FALSE.
  • return.species.list: Should a species list be returned in addition to downloading range maps? Default is FALSE
  • crop.ranges: Should the ranges be cropped to the focal area? Default is FALSE.
  • include.gid: Should the files returned have a unique GID appended to them? This is needed if downloading multiple maps for the same species.
  • ...: Additional arguments passed to internal functions.

Returns

Range maps for all available species within the specified bounding box.

Note

Details on the construction of BIEN range maps is available at https://bien.nceas.ucsb.edu/bien/biendata/bien-3/

Examples

## Not run: temp_dir <- file.path(tempdir(), "BIEN_temp") #Set a working directory BIEN_ranges_box(42,43,-85,-84,species.names.only = TRUE) BIEN_ranges_box(42,43,-85,-84,directory = temp_dir) ## End(Not run)

See Also

Other range functions: BIEN_ranges_genus(), BIEN_ranges_intersect_species(), BIEN_ranges_list(), BIEN_ranges_load_species(), BIEN_ranges_sf(), BIEN_ranges_shapefile_to_skinny(), BIEN_ranges_skinny_ranges_to_richness_raster(), BIEN_ranges_species(), BIEN_ranges_species_bulk()

  • Maintainer: Brian Maitner
  • License: MIT + file LICENSE
  • Last published: 2025-01-31

Useful links