README.md

SunsetTSA

Get Sunrise and Sunset Times for US Airport Locations

This package gets sunrise and sunset times for any US airport location by 3-letter airport code. The sunrise_sunset() function takes one mandatory argument, the airport code; and one optional argument, the date in yyyy-mm-dd format (without a date, results default to today's date.) Results are a list with sunrise time, sunset time, airport code, and date requested. Data come from a TSA API.

The package also has several convenience functions to look up airport codes by city, city and state, state, or partial name of the airport. Results are a data frame with airport code, city, state, and airport name. Data come from the US Bureau of Transportation Statistics.

This package is now on CRAN. To install it, run install.packages("SunsetTSA").

For more information, run vignette("Introduction", package = "SunsetTSA") after installing the package or head to the package website at https://smach.github.io/SunsetTSA/.

Travis build status CRAN status



smach/SunsetTSA documentation built on Dec. 25, 2019, 7:07 p.m.