View source: R/spatial-functions.R
max_dist | R Documentation |
calculate maximum distance among a table of coordinates
max_dist(coords, dist_FUN = "distm_km")
coords |
the coordinate matrix (or dataframe) from which a maximum distance is desired. |
dist_FUN |
the distance function used to calculate distances |
First the outermost points are found by fitting a convex hull in
Euclidean space. Then, the distances between these outer points is calculated
with dist_FUN
, and the maximum of these distances is returned
This is a fast, simple way of determining the maximum distance.
The maximum distance between two points (units determined by
dist_FUN
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.