Re: [R] dataRetrieval query error

2020-09-06 Thread Rich Shepard
On Sat, 5 Sep 2020, Bill Dunlap wrote: Name all your arguments (the vignette gets this wrong), including siteNumber=siteNumbers. Also, the vignette uses 'statCd', not 'statCD'. Bill, Thanks very much. I missed these. dataAvailable <- whatNWISdata(siteNumber=siteNumbers, service="all", statC

Re: [R] dataRetrieval query error [RESOLVED]

2020-09-06 Thread Rich Shepard
On Sat, 5 Sep 2020, David Winsemius wrote: This worked: dataAvailable <- whatNWISdata(siteNumber=siteNumbers) David/Bert, Mea culpa! The vignette example used a single siteNumber which is also the variable name and I missed that last point. Thank you very much. Regards, Rich

Re: [R] dataRetrieval query error

2020-09-06 Thread Rich Shepard
On Sat, 5 Sep 2020, Bert Gunter wrote: You failed to name the first parameter, siteNumbers? Bert, siteNumbers <- c("14207920","14208000","14208200","14208300","14208500","14208600","14208700","14208850","14209000","14209100","14209250","14209500","14209600","14209670","14209700","14209710","

Re: [R] dataRetrieval query error

2020-09-05 Thread Bill Dunlap
Name all your arguments (the vignette gets this wrong), including siteNumber=siteNumbers. Also, the vignette uses 'statCd', not 'statCD'. dataAvailable <- whatNWISdata(siteNumber=siteNumbers, service="all", statCd="all") gives some results. -Bill On Sat, Sep 5, 2020 at 4:44 PM Rich Shepard wr

Re: [R] dataRetrieval query error

2020-09-05 Thread David Winsemius
This worked: > dataAvailable <- whatNWISdata(siteNumber=siteNumbers) > str(dataAvailable) 'data.frame':    2565 obs. of  24 variables:  $ agency_cd : chr  "USGS" "USGS" "USGS" "USGS" ...  $ site_no   : chr  "14207920" "14208000" "14208000" "14208000" ...  $ station_nm    : ch

Re: [R] dataRetrieval query error

2020-09-05 Thread Bert Gunter
You failed to name the first parameter, siteNumbers? Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Sep 5, 2020 at 4:44 PM Rich Shepard wrote: > I'm le