View source: R/get_distances.R
get_distances | R Documentation |
Get the distance in kilometers between two points
get_distances(lat1, long1, lat2, long2, R = 6371)
lat1 |
Latitude in decimals |
long1 |
Longitude in decimals |
lat2 |
Latitude in decimals |
long2 |
Longitude in decimals |
R |
Radius of the earth in kmdescription (R=6371) |
A numeric vector with the distance in kilometers.
#' source: https://github.com/gustavobio/brclimate/blob/master/R/get_distances.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.