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):
On Sun, Dec 29, 2019 at 11:51 AM Jeff Reichman <[hidden email]> 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]]
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.