anyflights (version 0.1.0)

get_airports: Generate an airports dataset

Description

Please note that, even with a strong internet connection, this function may take several minutes to download relevant data.

Usage

get_airports(dir)

Arguments

dir

A character string---the folder for the dataset to be saved in

Value

A data frame with ~1350 rows and 8 variables:

faa

FAA airport code

name

Usual name of the airport

lat,lon

Location of airport

alt

Altitude, in feet

tz

Timezone offset from GMT

dst

Daylight savings time zone. A = Standard US DST: starts on the second Sunday of March, ends on the first Sunday of November. U = unknown. N = no dst.

tzone

IANA time zone, as determined by GeoNames webservice

See Also

get_flights for flight data, get_weather for weather data, get_airlines for airline data, and anyflights for a wrapper function

Examples

Run this code
# NOT RUN {
get_airports(dir = tempdir())
# }

Run the code above in your browser using DataCamp Workspace