airports: Airport metadata

Description Usage Format Source Examples

Description

Useful metadata about airports.

Usage

1

Format

A data frame with columns:

iata_code

IATA airport code.

airport_name

Usual name of the airport.

city

City where the airport is located.

state

State where the airport is located

country

United States of America (USA)

lat, lon

Location of airport.

Source

http://openflights.org/data.html, downloaded 2019-06-27

Examples

1
2
3
4
5
6
7
8
9
airports

if (require("dplyr")) {

airports %>% rename(dest = iata_code) %>% semi_join(flights)
flights %>% anti_join(airports %>% rename(dest = iata_code))
airports %>% rename(origin = iata_code) %>% semi_join(flights)

}

denironyx/caflights documentation built on Dec. 8, 2019, 12:36 a.m.