Skip to content

Commit

Permalink
Merge pull request #164 from ldecicco-USGS/master
Browse files Browse the repository at this point in the history
Need to convert 1 line results.
  • Loading branch information
ldecicco-USGS committed Jan 6, 2016
2 parents c4f25db + f671511 commit 95243b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dataRetrieval
Type: Package
Title: Retrieval Functions for USGS and EPA Hydrologic and Water Quality Data
Version: 2.4.4
Version: 2.4.5
Date: 2015-12-09
Authors@R: c( person("Robert", "Hirsch", role = c("aut"),
email = "[email protected]"),
Expand Down
4 changes: 3 additions & 1 deletion R/readNWISsite.r
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ readNWISsite <- function(siteNumbers){
urlSitefile <- paste0("http://waterservices.usgs.gov/nwis/site/?format=rdb&siteOutput=Expanded&sites=",siteNumber)

data <- importRDB1(urlSitefile,asDateTime=FALSE)

#readr needs multiple lines to convert to anything but characters:
data[,grep("_va",names(data))] <- sapply(data[,grep("_va",names(data))], as.numeric)

return(data)

}

0 comments on commit 95243b7

Please sign in to comment.