Flights
Automated download and load entire flights data, and functions for generating NYC flights, delay and weather delay for 2014.
Install / Use
/learn @arunsrinivasan/FlightsREADME
flights
flights contains functions to download and load flights data from the Bureau of Transportation Statistics. It also contains functions to generate On-time data for flights that departed from NYC (i.e. JFK, LGA or EWR) in 2014. Specifically, nycflights14, nycdelays14 and nycweatherdelays14.
Installation
To install the package, use devtools:
devtools::install_github("arunsrinivasan/flights")
Usage
Download flight logs
downloadflightlogs (year = 2014L, month = 1:12, path = "./", dir = "flights",
verbose = TRUE)
The function takes a year and month argument and downloads all the logs available from here and places them in the directory path/dir. The downloaded files are automatically replaced with their unzipped versions. If an unzipped log file already exists, then the downloads are skipped. And if the downloaded file was corrupted (which would error while unzipping), then we attempt to download it just once again. If it fails again, we skip this log.
Load entire flights data
flights (year = 2014L, month = 1:12, path = "./", dir = "flights",
select = NULL, verbose = TRUE)
This loads all the 100+ columns for the downloaded logs. Note that at the time of writing, logs for 2014 are available until the month of October.
nycflights14
nycflights14 (path = "./", dir = "flights", verbose = TRUE)
Loads columns identical to flights data from nycflights13, except for the year 2014.
nycdelays14
nycflights14 (path = "./", dir = "flights", verbose = TRUE)
Loads columns providing additional information about the type of delays for all flights that departed from NYC in 2014.
nycweatherdelays14
nycweatherflights14 (path = "./", dir = "flights", verbose = TRUE)
Same as above, but returns only those rows where weather_delay > 0L.
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
