| geo_distance | R Documentation | 
dplyr-ized version of geo::arcdist
geo_distance(x1, y1, x2, y2, unit = "nmi")
x1 | 
 A vector of longitudes.  | 
y1 | 
 A vector of latitudes.  | 
x2 | 
 A vector of longitudes.  | 
y2 | 
 A vector of latitudes.  | 
unit | 
 A atomic character vector, if "nmi" (default) returns values in nautical miles, any other value returns kilometers  | 
A numerical vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.