View source: R/netcdf_time_series.R
coord_distance | R Documentation |
Return the distance (in km) between the latitude/longitude pairs using the Haversine formula.
coord_distance(latA, lonA, latB, lonB)
latA |
The latitude for the first coordinate pair, in decimal-degrees Northing (or a vector of latitudes). |
lonA |
The longitude for the first coordinate pair, in decimal-degrees Easting (or a vector of longitudes). |
latB |
The latitude for the second coordinate pair, in decimal-degrees Northing (or a vector of latitudes). |
lonB |
The longitude for the second coordinate pair, in decimal-degrees Easting (or a vector of longitudes). |
The distance (in kilometres) between the coordinate pairs (or a vector of respective distances).
coord_distance(-34.9257, 138.5832, -34.9285, 138.6007)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.