am_species_in_csc: Species occuring in set of grid cell

Description Usage Arguments See Also Examples

View source: R/spatial.R

Description

Given a set of grid cell identifiers or CsquareCodes, this function returns a list of the species that occur there

Usage

1
am_species_in_csc(csc, min_prob = 0.5)

Arguments

csc

a vector of strings with CsquareCodes (grid cell identifiers)

min_prob

a numeric with the minimum threshold for probable occurrence, default 0.5

See Also

Other spatial: am_csc_from_extent(), am_map_leaflet(), am_raster(), am_species_per_csc(), csquare_from_dd(), csquare_to_dd(), rasterize_coords(), which_cells_in_raster()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# distinct number of species in a specific grid cell
am_species_in_csc("7516:236:1", 0.99)

# other species likely present in the same area as the bluespotted trevally
xt <- am_raster(am_search_fuzzy("bluespotted trevally")$key)@extent
csc <- am_csc_from_extent(xt@xmin, xt@xmax, xt@ymin, xt@ymax)$CsquareCode
am_species_in_csc(csc, min_prob = 0.9)

## End(Not run)

raquamaps/aquamapsdata documentation built on Feb. 25, 2021, 10:28 p.m.