Skip to content
Snippets Groups Projects
Commit 8a3e8652 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Limited examples to shorten run time.

parent 1e695f7d
No related branches found
No related tags found
1 merge request!35Fixed sample user file function.
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#' url_daily <- constructNWISURL(siteNumber,pCode, #' url_daily <- constructNWISURL(siteNumber,pCode,
#' startDate,endDate,'dv',statCd=c("00003","00001")) #' startDate,endDate,'dv',statCd=c("00003","00001"))
#' url_unit <- constructNWISURL(siteNumber,pCode,"2012-06-28","2012-06-30",'iv') #' url_unit <- constructNWISURL(siteNumber,pCode,"2012-06-28","2012-06-30",'iv')
#' \dontrun{
#' url_qw_single <- constructNWISURL(siteNumber,"01075",startDate,endDate,'qw') #' url_qw_single <- constructNWISURL(siteNumber,"01075",startDate,endDate,'qw')
#' url_qw <- constructNWISURL(siteNumber,c('01075','00029','00453'), #' url_qw <- constructNWISURL(siteNumber,c('01075','00029','00453'),
#' startDate,endDate,'qw') #' startDate,endDate,'qw')
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
#' startDate,endDate,'wqp') #' startDate,endDate,'wqp')
#' url_daily_tsv <- constructNWISURL(siteNumber,pCode,startDate,endDate,'dv', #' url_daily_tsv <- constructNWISURL(siteNumber,pCode,startDate,endDate,'dv',
#' statCd=c("00003","00001"),format="tsv") #' statCd=c("00003","00001"),format="tsv")
#' }
constructNWISURL <- function(siteNumber,parameterCd,startDate,endDate,service,statCd="00003", format="xml",expanded=FALSE,interactive=TRUE){ constructNWISURL <- function(siteNumber,parameterCd,startDate,endDate,service,statCd="00003", format="xml",expanded=FALSE,interactive=TRUE){
startDate <- formatCheckDate(startDate, "StartDate", interactive=interactive) startDate <- formatCheckDate(startDate, "StartDate", interactive=interactive)
......
...@@ -44,6 +44,7 @@ pCode <- c("00060","00010") ...@@ -44,6 +44,7 @@ pCode <- c("00060","00010")
url_daily <- constructNWISURL(siteNumber,pCode, url_daily <- constructNWISURL(siteNumber,pCode,
startDate,endDate,'dv',statCd=c("00003","00001")) startDate,endDate,'dv',statCd=c("00003","00001"))
url_unit <- constructNWISURL(siteNumber,pCode,"2012-06-28","2012-06-30",'iv') url_unit <- constructNWISURL(siteNumber,pCode,"2012-06-28","2012-06-30",'iv')
\dontrun{
url_qw_single <- constructNWISURL(siteNumber,"01075",startDate,endDate,'qw') url_qw_single <- constructNWISURL(siteNumber,"01075",startDate,endDate,'qw')
url_qw <- constructNWISURL(siteNumber,c('01075','00029','00453'), url_qw <- constructNWISURL(siteNumber,c('01075','00029','00453'),
startDate,endDate,'qw') startDate,endDate,'qw')
...@@ -51,6 +52,7 @@ url_wqp <- constructNWISURL(paste("USGS",siteNumber,sep="-"),c('01075','00029',' ...@@ -51,6 +52,7 @@ url_wqp <- constructNWISURL(paste("USGS",siteNumber,sep="-"),c('01075','00029','
startDate,endDate,'wqp') startDate,endDate,'wqp')
url_daily_tsv <- constructNWISURL(siteNumber,pCode,startDate,endDate,'dv', url_daily_tsv <- constructNWISURL(siteNumber,pCode,startDate,endDate,'dv',
statCd=c("00003","00001"),format="tsv") statCd=c("00003","00001"),format="tsv")
}
} }
\keyword{USGS} \keyword{USGS}
\keyword{data} \keyword{data}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment