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
b344ac46
Commit
b344ac46
authored
10 years ago
by
Laura A DeCicco
Browse files
Options
Downloads
Patches
Plain Diff
Unifying argument names.
parent
77688926
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/getSampleData.r
+5
-5
5 additions, 5 deletions
R/getSampleData.r
with
5 additions
and
5 deletions
R/getSampleData.r
+
5
−
5
View file @
b344ac46
...
...
@@ -7,9 +7,9 @@
#' section 3.4 of the vignette for more details.
#'
#' @param siteNumber string USGS site number. This is usually an 8 digit number
#' @param
P
arameterCd string USGS parameter code. This is usually an 5 digit number.
#' @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
p
arameterCd string USGS parameter code. This is usually an 5 digit number.
#' @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 interactive logical Option for interactive mode. If true, there is user interaction for error handling and data checks.
#' @keywords data import USGS WRTDS
#' @export
...
...
@@ -20,8 +20,8 @@
#' Sample_01075 <- getSampleData('01594440','01075', '1985-01-01', '1985-03-31')
#' Sample_All <- getSampleData('05114000','00915;00931', '1985-01-01', '1985-03-31')
#' Sample_Select <- getSampleData('05114000','00915;00931', '', '')
getSampleData
<-
function
(
siteNumber
,
P
arameterCd
,
S
tartDate
,
E
ndDate
,
interactive
=
TRUE
){
rawSample
<-
retrieveNWISqwData
(
siteNumber
,
P
arameterCd
,
S
tartDate
,
E
ndDate
)
getSampleData
<-
function
(
siteNumber
,
p
arameterCd
,
s
tartDate
,
e
ndDate
,
interactive
=
TRUE
){
rawSample
<-
retrieveNWISqwData
(
siteNumber
,
p
arameterCd
,
s
tartDate
,
e
ndDate
)
#rawSample$dateTime <- strptime(rawSample$dateTime,"%Y-%m-%d %H:%M:%S")
rawSample
$
dateTime
<-
as.Date
(
rawSample
$
dateTime
)
rawSample
$
site
<-
NULL
...
...
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