Description Usage Arguments Value Examples
View source: R/RProjects/HITHATStats.Rcheck/00_pkg_src/HITHATStats/R/getXMLWML1.1Data.R View source: R/RProjects/HITHATStats/R/getXMLWML1.1Data.R View source: R/getXMLWML1.1Data.R View source: R/standalone_scripts/stats_observed.r
This function accepts a url parameter that already contains the desired NWIS site, parameter code, statistic, startdate and enddate. It returns a data frame containing "Date" and "Discharge"
1 | getXMLWML1.1Data(obs_url)
|
obs_url |
string containing the url for the retrieval |
Daily a data frame containing columns 'Date' and 'Discharge'
1 2 3 4 5 6 7 8 | url<-"http://waterservices.usgs.gov/nwis/dv/?format=waterml,1.1&sites="
sites<-"02177000"
startdate<-"2012-09-01"
enddate<-"2012-10-01"
offering<-'00003'
property<-'00060'
obs_url<-paste(url,sites,'&startDT=',startdate,'&endDT=',enddate,'&statCd=',offering,'¶meterCd=',property,sep='')
getXMLWML1.1Data(obs_url)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.