anyflights (version 0.1.0)

anyflights: Generate a folder of air travel datasets for a given year and airport

Description

anyflights is a wrapper function for get_flights, get_airports, get_weather, and get_airlines. Please note that, even with a strong internet connection, this function may take several minutes to download relevant data, and temporarily requires up to 2GB of storage (the file size is trimmed down significantly after some post-processing---to the order of a couple MB---and the larger files are deleted before termination)

Usage

anyflights(station, year, dir)

Arguments

station

A character string---the airport of interest (use the FAA LID airport code).

year

The year of interest, as an integer (unquoted). Currently, years 2015 and on are supported. Information for the most recent year is usually available by February or March in the following year.

dir

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

Value

A folder containing datasets about air travel

See Also

get_flights for flight data, get_airports for airport data, get_weather for weather data, get_flights for flight data, and get_airlines for airline data. See anyflights_description for information on the package, rather than the function.

Examples

Run this code
# NOT RUN {
anyflights(station = "PDX", year = 2015, dir = tempdir())
# }

Run the code above in your browser using DataCamp Workspace