This function generates a dataframe similar to the
airports
dataset from nycflights13
for any US airports and time frame. Please
note that, even with a strong internet connection, this function
may take several minutes to download relevant data.
get_airports(dir = NULL)
dir | An optional character string giving the directory to save datasets in. By default, datasets will not be saved to file. |
---|
https://openflights.org/data.html
A data frame with ~1350 rows and 8 variables:
FAA airport code
Usual name of the airport
Location of airport
Altitude, in feet
Timezone offset from GMT/UTC
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.
IANA time zone, as determined by GeoNames webservice
get_flights
for flight data,
get_weather
for weather data,
get_airlines
for airlines data,
get_planes
for planes data,
or anyflights
for a wrapper function.
Use the as_flights_package
function to convert this dataset
to a data-only package.
# grab airports data
if (FALSE) get_airports()