Description Usage Arguments Value Author(s)
This function takes species range maps and a shapefile of islands and outputs a list of species on each island. A few notes: if having problems with orphaned holes, try readShapePoly instead of readOGR. Also, if the output list is not the same length as the number of islands, you might need to manually add elements to the end of the list that are NA. The last element of the output list will likely be an island that is not NA (i.e. an island with species ranges that overlap).
1 |
islands |
SpatialPolygonsDataFrame of islands |
sppRanges |
SpatialPolygonsDataFrame of species ranges |
IDvar |
A character string. The name of the column in shapefile sppRanges with the species name to be output in the list. |
Returns a list, with one entry for each island, of the species ranges that overlap for that island.
Tyler J Tran, tylerjtran@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.