[R] rnoaa library
wjm1 @end|ng |rom c@@@co|umb|@@edu
Tue Dec 31 07:41:40 CET 2019
You might have better luck posting your question on the R-SIG-Geo
mailing list, or perusing their archive. I've found a thread
pertaining to the rnoaa package from August 2016, along with a
particularly informative reply (reply link below):
If the above links don't help, you might consider checking for open
(or even closed) issues on Github:
W. Michels, Ph.D.
On Sun, Dec 29, 2019 at 11:51 AM Jeff Reichman <reichmanj using sbcglobal.net> wrote:
> r-help Forum
> Anyone familiar with the "rnoaa" library? I'm trying to pull NOAA temp
> data. I have a key but when I run the code highlighted in yellow ..
> Warning message:
> Sorry, no data found
> No matter what station_id I use.
> # library
> # set key
> options(noaakey = "<Enter key>")
> start_date = "2018-01-15"
> end_date = "2018-01-31"
> station_id = "USW00013994"
> weather_data <- ncdc(datasetid='NORMAL_HLY', stationid=paste0('GHCND:',
> datatypeid = "HLY-TEMP-NORMAL",
> startdate = start_date, enddate = end_date, limit=500)
> data <- weather_data$data
> data$year <- year(data$date)
> data$month <- month(data$date)
> data$day <- day(data$date)
> # summarize to average daily temps
> aggregate(value ~ year + month + day, mean, data = data)
> Jeff Reichman
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help