Learn R Programming

SunsetTSA (version 1.0.0)

sunrise_sunset: Get sunrise and sunset data for one day at US airport location from TSA API

Description

Get sunrise and sunset data for one day at US airport location from TSA API

Usage

sunrise_sunset(the_airport_code, the_date = Sys.Date())

Arguments

the_airport_code

string valid 3-letter US airport code. See http://bit.ly/USAirportCodes for full list.

the_date

string or date object in yyyy-mm-dd format. Defaults to current date.

Value

list with Sunrise, Sunset, Date, Location

Examples

Run this code
# NOT RUN {
sunrise_sunset("BOS")
sunrise_sunset("JFK", "2019-12-22")
# }

Run the code above in your browser using DataLab