checkDataAvailability

0th

Percentile

Check if WeatherUnderground has Data for given station and date

Use this function to check if data is available for station and date If the station code or the date is invalid, function will return 0

Usage
checkDataAvailability(station_id, check_date, station_type = "airportCode")
Arguments
station_id

is a valid airport code or a valid Weather Station ID

check_date

is a a valid string representing a date in the past (string "YYYY-MM-DD")

station_type

is either airportCode or id

Value

1 if the station does have weather records for input date, 0 if no records were found

References

For a list of valid Weather Stations, try this format http://www.wunderground.com/weatherstation/ListStations.asp?selectedCountry=United+States and replace with your country of interest

Aliases
  • checkDataAvailability
Examples

data_okay <- checkDataAvailability("HECA", "2014-01-01")


Documentation reproduced from package weatherData, version 0.5.0, License: GPL

Community examples

Looks like there are no examples yet.