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
ff5d8fae
Commit
ff5d8fae
authored
10 years ago
by
Laura A DeCicco
Browse files
Options
Downloads
Patches
Plain Diff
Added message if user asks for reshaped, non-expanded data.
parent
1473ea62
No related branches found
No related tags found
1 merge request
!52
Final updates for 2.0.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/readNWISqw.r
+6
-1
6 additions, 1 deletion
R/readNWISqw.r
with
6 additions
and
1 deletion
R/readNWISqw.r
+
6
−
1
View file @
ff5d8fae
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
#' @param expanded logical defaults to TRUE. If TRUE, retrieves additional information. Expanded data includes
#' @param expanded logical defaults to TRUE. If TRUE, retrieves additional information. Expanded data includes
#' remark_cd (remark code), result_va (result value), val_qual_tx (result value qualifier code), meth_cd (method code),
#' remark_cd (remark code), result_va (result value), val_qual_tx (result value qualifier code), meth_cd (method code),
#' dqi_cd (data-quality indicator code), rpt_lev_va (reporting level), and rpt_lev_cd (reporting level type).
#' dqi_cd (data-quality indicator code), rpt_lev_va (reporting level), and rpt_lev_cd (reporting level type).
#' @param reshape logical. Will reshape the data if TRUE (default)
#' @param reshape logical. Will reshape the data to a wide format if TRUE (default is FALSE). This is only
#' available for 'expanded' data.
#' @param tz character to set timezone attribute of datetime. Default is an empty quote, which converts the
#' @param tz character to set timezone attribute of datetime. Default is an empty quote, which converts the
#' datetimes to UTC (properly accounting for daylight savings times based on the data's provided tz_cd column).
#' datetimes to UTC (properly accounting for daylight savings times based on the data's provided tz_cd column).
#' Possible values to provide are "America/New_York","America/Chicago", "America/Denver","America/Los_Angeles",
#' Possible values to provide are "America/New_York","America/Chicago", "America/Denver","America/Los_Angeles",
...
@@ -75,6 +76,10 @@ readNWISqw <- function (siteNumbers,pCodes,startDate="",endDate="",
...
@@ -75,6 +76,10 @@ readNWISqw <- function (siteNumbers,pCodes,startDate="",endDate="",
}
}
if
(
reshape
&
!
expanded
){
message
(
"Reshape can only be used with expanded data. Reshape request will be ignored."
)
}
siteInfo
<-
readNWISsite
(
siteNumbers
)
siteInfo
<-
readNWISsite
(
siteNumbers
)
varInfo
<-
readNWISpCode
(
pCodes
)
varInfo
<-
readNWISpCode
(
pCodes
)
...
...
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