weatherData (version 0.3)

getCurrentTemperature: Get the latest recorded temperature for a location

Description

A wrapper for getWeatherData(), it returns the last record in the web page. Uses Sys.Date() to get current time.

Usage

getCurrentTemperature(station_id)

Arguments

station_id
is a valid Weather Station ID (example: "BUF", "ORD", "VABB" for Mumbai). Valid Weather Station "id" values: "KFLMIAMI75" or "IMOSCOWO2" You can look these up at wunderground.com. You can get station_id's for a given location by calling get

Value

  • 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)

References

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

Examples

Run this code
getCurrentTemperature(station ="HNL")

Run the code above in your browser using DataLab