Description Usage Arguments Details Value References See Also
View source: R/wrapper_functions.R
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
1 2 3 | getTemperatureForDate(station_id, start_date, end_date = NULL,
station_type = "airportCode", daily_min = FALSE, daily_max = FALSE,
opt_write_to_file = FALSE)
|
station_id |
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 |
start_date |
is a valid string representing a date in the past (YYYY-MM-DD, all numeric) |
end_date |
(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 |
station_type |
= "airportCode" (4-letter airport code) or "ID" (Wx call Sign) |
daily_min |
A boolean indicating if only the Minimum Temperatures are desired |
daily_max |
A boolean indicating if only the Maximum Temperatures are desired |
opt_write_to_file |
If TRUE, the resulting dataframe will be stored in a CSV file. Default is FALSE |
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
.
A data frame with each row containing:
Date and Time stamp (for each date specified)
Temperature values
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.