weatherData (version 0.3)

checkDataAvailabilityForDateRange: Quick Check to see if WeatherUnderground has Weather Data for given station for a range of dates

Description

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.

Usage

checkDataAvailabilityForDateRange(station_id, start_date, end_date,
  station_type = "airportCode")

Arguments

station_id
is a valid 3-letter airport code or a valid Weather Station ID
station_type
is either airportCode or id
start_date
is a valid string representing a date in the past (YYYY-MM-DD, all numeric)
end_date
is a a valid string representing a date in the past (YYYY-MM-DD, all numeric) and is greater than start_date

Value

  • 1 if the Station did have weather records, 0 if nothing was found

Details

This functions checks for just the first and the last date in the interval, not the days in between