This function will return a (fairly large) data frame. If you are going
to be using this data for future analysis, you can store the results in a CSV file
by setting opt_write_to_file
to be TRUE
getTemperatureForDate(station_id, start_date, end_date = NULL,
station_type = "airportCode", daily_min = FALSE, daily_max = FALSE,
opt_write_to_file = FALSE)
is a valid station code or a valid Weather Station ID (example: "BUF", "ORD", "VABB" for Mumbai). Valid Weather Station "id" values: "KFLMIAMI75" or "IMOSCOWO2" You can look up weather station IDs at wunderground.com
is a valid string representing a date in the past (YYYY-MM-DD, all numeric)
(optional) If an interval is to be specified, end_date is a a valid string representing a date in the past (YYYY-MM-DD, all numeric) and greater than start_date
= "airportCode" (4-letter airport code) or "ID" (Wx call Sign)
A boolean indicating if only the Minimum Temperatures are desired
A boolean indicating if only the Maximum Temperatures are desired
If TRUE, the resulting dataframe will be stored in a CSV file. Default is FALSE
A data frame with each row containing:
Date and Time stamp (for each date specified)
Temperature values
For each day in the date range, this function fetches Temperature Data. It will fetch
all the available values, which is typically multiple rows for each day, with a time stamp.
This function is a light wrapper for getWeatherForDate
.
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
getWeatherForDate, getDetailedWeather