getStationCode: Gets the Weather Station code for a location (in the US)

Description Usage Arguments Value References Examples

View source: R/util_functions.R

Description

This function goes through the USAirportWeatherStations dataset and looks for matches. Usually, the 4 letter airportCode is what you are after.

Usage

1
getStationCode(stationName, region = NULL)

Arguments

stationName

String that you want to get the weatherStation code for

region

A qualifier about the station's location. It could be a continent or a country. If in the US, region is a two-letter state abbreviation. Ex. "AK" for Alaska

Value

A one row data frame containing:

References

For a world-wide list of possible stations, be sure to look at http://weather.rap.ucar.edu/surface/stations.txt The ICAO (4-letter code is what needs to be input to getDetailedWeather())

Examples

1
2
getStationCode("Fiji") 
getStationCode("Athens", region="GA") # in the US State of Georgia

weatherData documentation built on June 6, 2017, 1:02 a.m.

Search within the weatherData package
Search all R packages, documentation and source code