View source: R/getStationData_single.R
getStationData_single | R Documentation |
Retrieves climate data from a single ISD station for a given year range.
getStationData_single()
expands on rnoaa's isd()
function, by allowing to append data for multiple years in the same data frame and catching and ignoring errors.
getStationData_single(years, usaf, wban)
years |
year range (numeric). |
usaf |
station USAF (United States Air Force) ID number (numeric). |
wban |
station WBAN (Weather Bureau Army Navy) ID number (numeric). |
Returns a data frame with the data for the available years in the range given.
USAF and WBAN numbers for a station can be found with the function getStationInfo()
if the name of the station is known, or with rnoaa's isd_stations_search()
if the station location is known.
stmatthewsIsland <- getStationData_single(1945, 749231, 99999) adakIsland <- getStationData_single(2010:2018, 997380, 99999) # With error message mtl <- getStationData_single(1954:1956, 713721, 99999) # With warning message borabora <- getStationData_single(1942:1945, 919300, 99999) # With warning and error message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.