Description Usage Arguments Value Examples
Lookup airport code (IATA and ICAO code). weatherunderground API might not recognize the IATA/ICAO code for smaller airports.
1 | lookup_airport(location, region = NULL)
|
location |
location string |
region |
region string |
data.frame of matching airport name and IATA/ICAO codes
1 2 3 4 5 6 | ## Not run:
lookup_airport("Honolulu")
lookup_airport("Pyongyang")
lookup_airport("Portland", region = "Los_Angeles")
## End(Not run)
|
Attaching package: 'rwunderground'
The following object is masked from 'package:utils':
history
airport_name city country IATA ICAO region
3617 Honolulu Intl Honolulu United States HNL PHNL Pacific/Honolulu
5549 Hickam Air Force Base Honolulu United States <NA> PHIK Pacific/Honolulu
airport_name city country IATA ICAO region
3268 Pyongyang Intl Pyongyang Korea FNJ ZKPY Asia/Pyongyang
airport_name city country IATA ICAO region
3609 Portland Intl Portland United States PDX KPDX America/Los_Angeles
6420 Portland Troutdale Troutdale United States TTD KTTD America/Los_Angeles
6421 Portland Hillsboro Hillsboro United States HIO KHIO America/Los_Angeles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.