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

Changing dateTime to date.

parent 6ec3aadd
No related branches found
No related tags found
1 merge request!51Fixed multi-pcode WQP call bug.
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#' Name \tab Type \tab Description \cr #' Name \tab Type \tab Description \cr
#' agency \tab character \tab The NWIS code for the agency reporting the data\cr #' agency \tab character \tab The NWIS code for the agency reporting the data\cr
#' site \tab character \tab The USGS site number \cr #' site \tab character \tab The USGS site number \cr
#' datetime \tab Date \tab The date of the value \cr #' Date \tab Date \tab The date of the value \cr
#' code \tab character \tab Any codes that qualify the corresponding value\cr #' code \tab character \tab Any codes that qualify the corresponding value\cr
#' value \tab numeric \tab The numeric value for the parameter \cr #' value \tab numeric \tab The numeric value for the parameter \cr
#' } #' }
...@@ -68,6 +68,8 @@ readNWISdv <- function (siteNumber,parameterCd,startDate="",endDate="",statCd="0 ...@@ -68,6 +68,8 @@ readNWISdv <- function (siteNumber,parameterCd,startDate="",endDate="",statCd="0
if(nrow(data)>0){ if(nrow(data)>0){
data$dateTime <- as.Date(data$dateTime) data$dateTime <- as.Date(data$dateTime)
data$tz_cd <- NULL data$tz_cd <- NULL
data$Date <- data$dateTime
data$dateTime <- NULL
} }
......
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