min_dist | R Documentation |
Returns 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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.