calculate maximum distance among a table of coordinates
max_dist(coords, dist_FUN = "distm_km")
The maximum distance between two points (units determined by
dist_FUN
)
the coordinate matrix (or dataframe) from which a maximum distance is desired.
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.