Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • dataRetrieval dataRetrieval
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Water
  • dataRetrievaldataRetrieval
  • Issues
  • #425
Closed
Open
Issue created Oct 04, 2022 by Hoard, Christopher J..@cjhoard

Issue with missing variableInfo attribute table when using the readNWISqw command in dataRetrieval.

Hello I was trying to use some code that access the parameter names in the variableInfo attribute table that was included in the dataframe that is returned when using readNWISqw command in the dataRetrieval package. I am using R version 4.2.1 and dataRetrieval v. 2.7.11. Just wondering if this has gone away for good or if it might just be missing due to a recent update. Appreciate any help you can provide for this. I have attached a reproducible example below if you run this you should get an error which I have tracked to there being no variableInfo table.

library(dataRetrieval)
library(tidyverse)
SEQW = readNWISqw(siteNumbers = c("04175748", "04176063", "04176617","041843678")
                  ,parameterCd='All',tz='America/Detroit',startDate = "2021-10-01",endDate = "2023-10-01")
QW_Wide_val = SEQW %>% 
   select(c(site_no,startDateTime,parm_cd,remark_cd,result_va)) %>% 
   left_join(attr(SEQW,"siteInfo")[2:3]) %>%
   left_join(attr(SEQW,"variableInfo"), by=c("parm_cd" = "parameter_cd")) %>%
   rename(a=result_va,) %>%
   pivot_wider(id_cols=c(site_no,station_nm,startDateTime),
               names_from = parameter_nm,
               values_from = c(a),
               names_sort=T,
               names_glue="{parameter_nm}") 
Edited Oct 04, 2022 by Laura A DeCicco
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking