Description Usage Arguments Details Value References Examples
View source: R/wrapper_functions.R
Function will return the latest avialable temperature at a specified location.
1 | getCurrentTemperature(station_id)
|
station_id |
is a valid Weather Station ID
(example: "BUF", "ORD", "VABB" for Mumbai).
Valid Weather Station "id" values: |
A wrapper for getDetailedWeather()
, it returns the last
record in the web page. Uses Sys.Date()
to get current time. This function
returns temperature in Farenheit or Celcius depending on the caller's location.
A one row data frame containing:
Date and Time stamp (for when the latest temperature reading was recorded)
Temperature for the station in Farenheit (or Celcius)
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
1 2 3 4 | ## Not run:
getCurrentTemperature(station ="HNL")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.