Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dataRetrieval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water
dataRetrieval
Commits
d0d2ec82
Commit
d0d2ec82
authored
10 years ago
by
Laura A DeCicco
Browse files
Options
Downloads
Patches
Plain Diff
Added help file info.
parent
aa9404b6
No related branches found
No related tags found
1 merge request
!39
Overhaul of function names. Move some functionality to EGRET.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/whatNWISData.r
+3
-2
3 additions, 2 deletions
R/whatNWISData.r
with
3 additions
and
2 deletions
R/whatNWISData.r
+
3
−
2
View file @
d0d2ec82
...
...
@@ -8,7 +8,8 @@
#' "gw"(groundwater levels), "ad" (sites included in USGS Annual Water Data Reports External Link),
#' "aw" (sites monitored by the USGS Active Groundwater Level Network External Link), "id" (historical
#' instantaneous values), "
#' @param pCode string vector
#' @param pCode string vector of valid parameter codes to return. Defaults to "all" which will not perform a filter.
#' @param statCd string vector of all statistic codes to return. Defaults to "all" which will not perform a filter.
#' @keywords data import USGS web service
#' @return retval dataframe with all information found in the expanded site file
#' @export
...
...
@@ -29,7 +30,7 @@ whatNWISdata <- function(siteNumbers,service="all",pCode="all",statCd="all"){
service
<-
match.arg
(
service
,
c
(
"dv"
,
"uv"
,
"qw"
,
"ad"
,
"id"
,
"pk"
,
"sv"
,
"gw"
,
"aw"
,
"all"
,
"ad"
,
"iv"
,
"rt"
),
several.ok
=
TRUE
)
}
if
(
!
(
"all"
%in%
pCode
){
if
(
!
(
"all"
%in%
pCode
)
)
{
pcodeCheck
<-
all
(
nchar
(
pCode
)
==
5
)
&
all
(
!
is.na
(
suppressWarnings
(
as.numeric
(
pCode
))))
if
(
!
pcodeCheck
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment