nearestLarger: Calculating distance to nearest island of equal or larger...

Description Usage Arguments Value Author(s)

View source: R/nearestLarger_pkg.R

Description

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.

Usage

1
nearestLarger(pts, polys)

Arguments

pts

SpatialPointsDataFrame of centroids of your islands. Can use findCentroids() function.

polys

SpatialPolygonsDataFrame of islands in the world. Example GADM.

Value

Returns vector of distances between each of the centroids and the nearest island of equal or larger area.

Author(s)

Tyler J Tran, tylerjtran@gmail.com


mrhelmus/ieco documentation built on May 23, 2019, 7:37 a.m.