lookup_airport: Lookup airport code (IATA and ICAO code). weatherunderground...

Description Usage Arguments Value Examples

Description

Lookup airport code (IATA and ICAO code). weatherunderground API might not recognize the IATA/ICAO code for smaller airports.

Usage

1
lookup_airport(location, region = NULL)

Arguments

location

location string

region

region string

Value

data.frame of matching airport name and IATA/ICAO codes

Examples

1
2
3
4
5
6
## Not run: 
lookup_airport("Honolulu")
lookup_airport("Pyongyang")
lookup_airport("Portland", region = "Los_Angeles")

## End(Not run)

Example output

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

rwunderground documentation built on May 2, 2019, 2:46 a.m.