powered by
Before we attempt to fetch the data for a big time interval of dates, this function is useful to see if the data even exists.
checkDataAvailabilityForDateRange(station_id, start_date, end_date, station_type = "airportCode")
is a valid 3-letter airport code or a valid Weather Station ID
is either airportCode or id
airportCode
id
is a valid string representing a date in the past (YYYY-MM-DD, all numeric)
is a a valid string representing a date in the past (YYYY-MM-DD, all numeric) and is greater than start_date
1 if the Station did have weather records, 0 if nothing was found
This functions checks for just the first and the last date in the interval, not the days in between
data_okay <- checkDataAvailabilityForDateRange("BOS", "2011-01-01", "2011-03-31")
Run the code above in your browser using DataLab