distcalc | R Documentation |
calculate Euclidean distance, a rough proxy for as-the-crow flies distance between vectors of latitude and longitudes and a single destination. Best used with mutate().
distcalc(lon, lat, y)
lon |
a vector of longitudues |
lat |
a vector of latitudes |
y |
a single destinatoin |
a numeric vector of distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.