Skip to content
Snippets Groups Projects
Commit 2fb02cb0 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Unifying argument names.

parent 781571af
No related branches found
No related tags found
1 merge request!7Response to reviewer's comments.
...@@ -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 StartDate string starting date for data retrieval in the form YYYY-MM-DD. #' @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 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. #' @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,StartDate,EndDate,interactive=TRUE){ getWQPData <- function(siteNumber,characteristicName,startDate,endDate,interactive=TRUE){
retval <- retrieveWQPqwData(siteNumber=siteNumber, retval <- retrieveWQPqwData(siteNumber=siteNumber,
ParameterCd=characteristicName, parameterCd=characteristicName,
StartDate=StartDate, startDate=startDate,
EndDate=EndDate, endDate=endDate,
interactive=interactive) interactive=interactive)
#Check for pcode: #Check for pcode:
if(all(nchar(characteristicName) == 5)){ if(all(nchar(characteristicName) == 5)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment