Description Usage Arguments Value Examples
View source: R/airport_lookups.R
This function takes a city normal city name as an input argument and returns all airports associated with that city. Airports are typically associated with their local metropolitan area but some exceptions may be present in the data. If there are no matching results in the data for the city argument, a list of closely named alternatives will be suggested with a warning.
1 | city_airports(city, country)
|
city |
A city name. If no exact match will attempt to prompt user with suggested alternatives |
country |
(Optional) A country name or ISO country code in either numeric, alpha-2, or alpha 3 format. Case insensitive. |
A Nx17
tibble with airport details where n
is the number of airports serving that city
1 2 3 4 5 6 | city_airports("Vancouver")
city_airports("London")
city_airports("London","Canada")
city_airports("London","CA")
city_airports("London","CAN")
city_airports("London","124")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.