Description Usage Arguments Details Value Author(s) See Also
View source: R/lets_shpfilter.R
Filter species shapefiles by origin, presence, and seasonal type (following IUCN types: https://www.iucnredlist.org/resources/spatial-data-download, see metadata).
1 | lets.shFilter(shapes, presence = NULL, origin = NULL, seasonal = NULL)
|
shapes |
Object of class SpatialPolygonsDataFrame (see function |
presence |
A vector with the code numbers for the presence type to be maintained. |
origin |
A vector with the code numbers for the origin type to be maintained. |
seasonal |
A vector with the code numbers for the seasonal type to be maintained. |
Presence codes: (1) Extant, (2) Probably Extant, (3) Possibly Extant, (4) Possibly Extinct, (5) Extinct (post 1500) & (6) Presence Uncertain.
Origin codes: (1) Native, (2) Reintroduced, (3) Introduced, (4) Vagrant & (5) Origin Uncertain.
Seasonal codes: (1) Resident, (2) Breeding Season, (3) Non-breeding Season, (4) Passage & (5) Seasonal Occurrence Uncertain.
More info in the shapefiles' metadata.
The result is the shapefile(s) filtered according to the selected types. If the filters remove all polygons, the result will be NULL.
Bruno Vilela
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.