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
4efc4c7e
Commit
4efc4c7e
authored
10 years ago
by
Laura A DeCicco
Browse files
Options
Downloads
Patches
Plain Diff
Renamed file for clarity.
parent
796ca721
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/getWQPqwData.r
+5
-8
5 additions, 8 deletions
R/getWQPqwData.r
with
5 additions
and
8 deletions
R/get
RawQW
Data.r
→
R/get
WQPqw
Data.r
+
5
−
8
View file @
4efc4c7e
...
...
@@ -12,24 +12,21 @@
#' Leaving this blank will return all of the measured values during the specified time period.
#' @param startDate string starting date for data retrieval in the form YYYY-MM-DD.
#' @param endDate 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.
#' @keywords data import USGS web service
#' @return retval dataframe raw data returned from the Water Quality Portal. Additionally, a POSIXct dateTime column is supplied for
#' start and end times.
#' @export
#' @import RCurl
#' @seealso \code{\link{getWQPData}}, \code{\link{getWQPSites}},
#' \code{\link{getNWISqwData}}, and \code{\link{
read
WQPData}}
#' \code{\link{getNWISqwData}}, and \code{\link{
parse
WQPData}}
#' @examples
#' # These examples require an internet connection to run
#' \dontrun{
#' rawPcode <- getWQPqwData('USGS-01594440','01075', '1985-01-01', '1985-03-31')
#' rawCharacteristicName <- getWQPqwData('WIDNR_WQX-10032762','Specific conductance', '', '')
#'
}
getWQPqwData
<-
function
(
siteNumber
,
parameterCd
,
startDate
,
endDate
,
interactive
=
TRUE
){
#'
getWQPqwData
<-
function
(
siteNumber
,
parameterCd
,
startDate
,
endDate
){
url
<-
construct
NWIS
URL
(
siteNumber
,
parameterCd
,
startDate
,
endDate
,
"wqp"
,
interactive
=
interactive
)
retVal
<-
read
WQPData
(
url
)
url
<-
construct
WQP
URL
(
siteNumber
,
parameterCd
,
startDate
,
endDate
)
retVal
<-
parse
WQPData
(
url
)
return
(
retVal
)
}
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