min_dist.RdReturns the minimum distance to a set of targets given a dataframe with coordinates. Uses sp spDistsN1 with Great Circle distance as default
min_dist(coords, targets)
| coords | A nx2 matrix or data frame containing geocoordinates for n subjects. |
|---|---|
| targets | A mx2 matrix containing a set of geocoordinates for m target locations. |