Description Usage Arguments Value Examples
This function will get the weather forecast conditions for a given location
1 2 | getWeatherFromYahoo(location_id = "10001",
units = "metric", message = FALSE)
|
location_id |
A five digit US zip code or location ID. To find your location ID, browse or search for your city from the Weather home page(http://weather.yahoo.com/) The weather ID is in the URL for the forecast page for that city. You can also get the location ID by entering your zip code on the home page. For example, if you search for Los Angeles on the Weather home page, the forecast page for that city is http://weather.yahoo.com/forecast/USCA0638.html. The location ID is USCA0638. |
units |
A character either 'metric' (default) for metric units or ” for non metric units |
message |
If TRUE (default FALSE) the function returns a message summarizing the weather forecast for the location of interest |
A list containing a list with the weather information for the given location and a data.frame with the forecasts
1 2 3 4 5 | ## Not run:
library("RWeather")
getWeatherFromYahoo("10001")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.