getWeatherFromNOAA: Retrieve weather report from NOAA: National Oceanic and...

Description Usage Arguments Value Examples

View source: R/rweather.r

Description

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

Usage

1
  getWeatherFromNOAA(station_id = "KJFK", message = FALSE)

Arguments

station_id

the ID of the weather station near the necessary location To find your station ID, open http://www.weather.gov/xml/current_obs/seek.php?state=az&Find=Find select the desired state and retrieve the Observation Location: the station_id is the string within the () parentheses.

message

If TRUE (default FALSE) the function returns a message summarizing the weather forecast for the location of interest

Value

A data.frame containing the weather information for the given station

Examples

1
2
3
4
5
## Not run: 
library("RWeather")
getWeatherFromNOAA(station_id="KJFK") # current observation for New York

## End(Not run)

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