Description Usage Arguments Value Author(s)
View source: R/nearestLarger_pkg.R
This function calculates distances, for each island, to the nearest island of equal or larger area. It calculates area using the calcIslandArea() function from this package, and then reprojects into the azimuthal equidistant projection with the projection centered on the centroid for each iteration.
1 | nearestLarger(pts, polys)
|
pts |
SpatialPointsDataFrame of centroids of your islands. Can use findCentroids() function. |
polys |
SpatialPolygonsDataFrame of islands in the world. Example GADM. |
Returns vector of distances between each of the centroids and the nearest island of equal or larger area.
Tyler J Tran, tylerjtran@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.