Description Usage Arguments Value Examples
A function that calculates distances between pairs of airport codes. Distances are calculated using the Haversine formula which assumes a spherical earth. Distances are returned in kilometres.
1 | airport_distance(airport1, airport2)
|
airport1 |
Takes a three-letter IATA code corresponding to an airport |
airport2 |
As above |
The great circle distance in kilometres between the two airports
1 | airport_distance("YVR","YYZ")
|
[1] 3346.562
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.