Skip to content

Commit

Permalink
Merge pull request #122 from ldecicco-USGS/master
Browse files Browse the repository at this point in the history
Updating rBuildignore
  • Loading branch information
ldecicco-USGS committed Apr 27, 2015
2 parents 2168322 + 2511ae8 commit 8858be5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
vignettes\figure
vignettes/figure
appveyor.yml
.travis.yml
.gitignore
dataRetrieval-concordance.tex
^.*\.Rproj$
^\.Rproj\.user$
^\.Rproj\inst\dataRetrieval.log
^\.Rproj\inst\dataRetrieval-concordance.tex
^\.Rproj\inst\dataRetrieval.toc
^\.Rproj\inst\dataRetrieval.tex
^\.travis\.yml$
^\.Rproj\.gitignore
^\.Rproj\.RData
^\.Rproj\dataRetrieval.Rproj
^\.Rproj\.Rhistory
^\.Rproj\.travis.yml
^\.Rproj\appveyor.yml
appveyor.yml


1 change: 1 addition & 0 deletions R/readWQPdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ readWQPdata <- function(...){
}

values <- gsub(",","%2C",values)
values <- gsub(";","%3B",values)
values <- gsub("%20","+",values)
values <- gsub(":","%3A",values)

Expand Down
16 changes: 16 additions & 0 deletions R/whatWQPsites.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,23 @@ whatWQPsites <- function(...){
values <- values[!(names(values) %in% "tz")]
}

if("statecode" %in% names(values)){
stCd <- values["statecode"]
if(!grepl("US:",stCd)){
values["statecode"] <- paste0("US:",stateCdLookup(stCd, "id"))
}
}

if("stateCd" %in% names(values)){
stCd <- values["stateCd"]
if(!grepl("US:",stCd)){
values["stateCd"] <- paste0("US:",stateCdLookup(stCd, "id"))
}
names(values)[names(values) == "stateCd"] <- "statecode"
}

values <- gsub(",","%2C",values)
values <- gsub(";","%3B",values)
values <- gsub("%20","+",values)
values <- gsub(":","%3A",values)

Expand Down
Binary file modified inst/doc/dataRetrieval.pdf
Binary file not shown.

0 comments on commit 8858be5

Please sign in to comment.