getWeatherFromYahoo: Retrieve weather forecast for a given location using Yahoo...

Description Usage Arguments Value Examples

View source: R/rweather.r

Description

This function will get the weather forecast conditions for a given location

Usage

1
2
  getWeatherFromYahoo(location_id = "10001",
    units = "metric", message = FALSE)

Arguments

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

Value

A list containing a list with the weather information for the given location and a data.frame with the forecasts

Examples

1
2
3
4
5
## Not run: 
library("RWeather")
getWeatherFromYahoo("10001")

## End(Not run)

RWeather documentation built on May 2, 2019, 4:48 p.m.