compute_distance | R Documentation |
Compute the distance (or inverse distance) between locations
compute_distance(long, lat, inv = FALSE)
long |
a vector of longitudes |
lat |
a vector of latitudes |
inv |
whether to return the inverse of the distance (default = FALSE) |
a square data frame (if inv = FALSE) or matrix (if inv = TRUE)
# distance Berlin/London: compute_distance(long = c(13.41, -0.13), lat = c(52.52, 51.51))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.