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
2fb02cb0
Commit
2fb02cb0
authored
10 years ago
by
Laura A DeCicco
Browse files
Options
Downloads
Patches
Plain Diff
Unifying argument names.
parent
781571af
No related branches found
No related tags found
1 merge request
!7
Response to reviewer's comments.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/getWQPData.r
+6
-6
6 additions, 6 deletions
R/getWQPData.r
with
6 additions
and
6 deletions
R/getWQPData.r
+
6
−
6
View file @
2fb02cb0
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
#'
#'
#' @param siteNumber string site number. If USGS, it should be in the form :'USGS-XXXXXXXXX...'
#' @param siteNumber string site number. If USGS, it should be in the form :'USGS-XXXXXXXXX...'
#' @param characteristicName string
#' @param characteristicName string
#' @param
S
tartDate string starting date for data retrieval in the form YYYY-MM-DD.
#' @param
s
tartDate string starting date for data retrieval in the form YYYY-MM-DD.
#' @param
E
ndDate string ending date for data retrieval in the form YYYY-MM-DD.
#' @param
e
ndDate string ending date for data retrieval in the form YYYY-MM-DD.
#' @param interactive logical Option for interactive mode. If true, there is user interaction for error handling and data checks.
#' @param interactive logical Option for interactive mode. If true, there is user interaction for error handling and data checks.
#' @keywords data import WQP web service
#' @keywords data import WQP web service
#' @return retval dataframe with first column dateTime, and at least one qualifier and value columns
#' @return retval dataframe with first column dateTime, and at least one qualifier and value columns
...
@@ -20,12 +20,12 @@
...
@@ -20,12 +20,12 @@
#' SC <- getWQPData('WIDNR_WQX-10032762','Specific conductance', '', '')
#' SC <- getWQPData('WIDNR_WQX-10032762','Specific conductance', '', '')
#' NWIS_Cl <- getWQPData('USGS-04024000','30234', '', '')
#' NWIS_Cl <- getWQPData('USGS-04024000','30234', '', '')
#' MultipleQW <- getWQPData('USGS-04024000',c('30234','90095'), '', '')
#' MultipleQW <- getWQPData('USGS-04024000',c('30234','90095'), '', '')
getWQPData
<-
function
(
siteNumber
,
characteristicName
,
S
tartDate
,
E
ndDate
,
interactive
=
TRUE
){
getWQPData
<-
function
(
siteNumber
,
characteristicName
,
s
tartDate
,
e
ndDate
,
interactive
=
TRUE
){
retval
<-
retrieveWQPqwData
(
siteNumber
=
siteNumber
,
retval
<-
retrieveWQPqwData
(
siteNumber
=
siteNumber
,
P
arameterCd
=
characteristicName
,
p
arameterCd
=
characteristicName
,
S
tartDate
=
S
tartDate
,
s
tartDate
=
s
tartDate
,
E
ndDate
=
E
ndDate
,
e
ndDate
=
e
ndDate
,
interactive
=
interactive
)
interactive
=
interactive
)
#Check for pcode:
#Check for pcode:
if
(
all
(
nchar
(
characteristicName
)
==
5
)){
if
(
all
(
nchar
(
characteristicName
)
==
5
)){
...
...
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