Description Usage Arguments Value See Also Examples
Given a valid station and a single date this function
will return a dataframe of time-stamped weather data. All the records
are summarized into one record per day. If and end_date
is specified
the function returns 1 record for each day in the date range.
1 2 3 4 |
station_id |
is a valid 3-letter airport code |
start_date |
string representing a date in the past ("YYYY-MM-DD") |
end_date |
(optional) string representing a date in the past ("YYYY-MM-DD"), and later than or equal to start_date. |
station_type |
can be |
opt_temperature_columns |
Boolen flag to indicate only Temperature data is to be returned (default TRUE) |
opt_all_columns |
Boolen flag to indicate whether all available data is to be returned (default FALSE) |
opt_custom_columns |
Boolen flag to indicate if only a user-specified set of columns are to be returned. (default FALSE)
If TRUE, then the desired columns must be specified via |
custom_columns |
Vector of integers specified by the user to indicate which columns to fetch.
The Date column is always returned as the first column. The
column numbers specfied in |
opt_verbose |
Boolean flag to indicate if verbose output is desired |
A data frame with each row containing:
Date stamp for the date specified
Additional columns of Weather data depending on the options specified
getWeatherForDate, getDetailededWeather
1 2 3 4 5 6 7 8 9 | ## Not run:
paris_in_fall<- getSummarizedWeather("CDG", "2013-09-30") #will get Temp columns by default
#
windLHR <- getSummarizedWeather("LHR", "2012-12-12", "2012-12-31",
opt_custom_columns=TRUE,
custom_columns=c(17,18,19,23))
## End(Not run)
|
URL does not seem to exist: https://www.wunderground.com/history/airport/CDG/2013/9/30/CustomHistory.html?dayend=30&monthend=9&yearend=2013&req_city=NA&req_state=NA&req_statename=NA&format=1
The original error message:
Couldn't resolve host nameWarning message:
In isObtainedDataValid(wxdata, station_id, custom_url) :
There seems to be no data in the URL.
Try going to the URL via your browser and seeing if there is data.
Inspect the validity of the URL being tried:
https://www.wunderground.com/history/airport/CDG/2013/9/30/CustomHistory.html?dayend=30&monthend=9&yearend=2013&req_city=NA&req_state=NA&req_statename=NA&format=1
URL does not seem to exist: https://www.wunderground.com/history/airport/LHR/2012/12/12/CustomHistory.html?dayend=31&monthend=12&yearend=2012&req_city=NA&req_state=NA&req_statename=NA&format=1
The original error message:
Couldn't resolve host nameWarning message:
In isObtainedDataValid(wxdata, station_id, custom_url) :
There seems to be no data in the URL.
Try going to the URL via your browser and seeing if there is data.
Inspect the validity of the URL being tried:
https://www.wunderground.com/history/airport/LHR/2012/12/12/CustomHistory.html?dayend=31&monthend=12&yearend=2012&req_city=NA&req_state=NA&req_statename=NA&format=1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.