View source: R/utils-spherical.R
arcdist | R Documentation |
This function calculates the shortest arc distance between two points.
arcdist(p1, p2, output = "distance", origin = c(0, 0, 0), radius = authRadius)
p1 |
( |
p2 |
( |
output |
( |
origin |
( |
radius |
( |
A single numeric
value.
# coordinates of two points
point1<- c(0,0)
point2<- c(180,0)
arcdist(point1,point2,"distance")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.