From b176f8aafad77ec086ee7d1cd5e844283cd36402 Mon Sep 17 00:00:00 2001
From: unknown <ldecicco@usgs.gov>
Date: Mon, 3 Nov 2014 17:12:10 -0600
Subject: [PATCH] Add example with no data.

---
 R/readNWISdv.r | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/R/readNWISdv.r b/R/readNWISdv.r
index 2834f562..5d79ae54 100644
--- a/R/readNWISdv.r
+++ b/R/readNWISdv.r
@@ -24,11 +24,13 @@
 #'        startDate, endDate, statCd=c('00001','00003'))
 #' rawDailyMultiSites<- readNWISdv(c("01491000","01645000"),c('00010','00060'),
 #'        startDate, endDate, statCd=c('00001','00003'))
+#' x <- readNWISdv("10258500","00060", "2014-09-10", "2014-09-12")
 readNWISdv <- function (siteNumber,parameterCd,startDate="",endDate="",statCd="00003"){  
   
   url <- constructNWISURL(siteNumber,parameterCd,startDate,endDate,"dv",statCd=statCd)
 
-  data <- importWaterML1(url)
+  data <- importWaterML1(url, asDateTime=TRUE)
+  
 
   return (data)
 }
-- 
GitLab