BIEN_list_sf: Extract a list of species within a given sf polygon.

View source: R/BIEN.R

BIEN_list_sfR Documentation

Extract a list of species within a given sf polygon.

Description

BIEN_list_sf produces a list of all species with occurrence records falling within a user-supplied sf object.

Usage

BIEN_list_sf(sf, cultivated = FALSE, new.world = NULL, ...)

Arguments

sf

An object of class ff. Note that the object must be in WGS84.

cultivated

Return information on cultivation status? Default is FALSE.

new.world

NULL (The default) returns global records, TRUE returns only New World, and FALSE only Old World.

...

Additional arguments passed to internal functions.

Value

Dataframe containing a list of all species with occurrences in the supplied sf object.

See Also

Other list functions: BIEN_list_all(), BIEN_list_country(), BIEN_list_county(), BIEN_list_state()

Examples

## Not run: 
library(sf)

BIEN_ranges_species("Carnegiea gigantea") # saves ranges to the current working directory

sf <- st_read(dsn = ".",
              layer = "Carnegiea_gigantea")

species_list <- BIEN_list_sf(sf = sf)

## End(Not run)

BIEN documentation built on Jan. 6, 2023, 9:06 a.m.