Skip to content
Snippets Groups Projects
importWQP.Rd 1.34 KiB
Newer Older
  • Learn to ignore specific revisions
  • % Generated by roxygen2 (4.0.2): do not edit by hand
    
    Laura A DeCicco's avatar
    Laura A DeCicco committed
    \name{importWQP}
    \alias{importWQP}
    
    \title{Basic Water Quality Portal Data grabber}
    \usage{
    
    Laura A DeCicco's avatar
    Laura A DeCicco committed
    importWQP(url, zip = FALSE, tz = "")
    
    }
    \arguments{
    \item{url}{string URL to Water Quality Portal#'}
    
    
    \item{zip}{logical used to request the data in a zip format (TRUE)}
    
    Laura A DeCicco's avatar
    Laura A DeCicco committed
    
    \item{tz}{string 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).
    Possible values to provide are "America/New_York","America/Chicago", "America/Denver","America/Los_Angeles",
    "America/Anchorage","America/Honolulu","America/Jamaica","America/Managua","America/Phoenix", and "America/Metlakatla"}
    
    }
    \value{
    retval dataframe raw data returned from the Water Quality Portal. Additionally, a POSIXct dateTime column is supplied for
    start and end times.
    }
    \description{
    Imports data from the Water Quality Portal based on a specified url.
    }
    \examples{
    # These examples require an internet connection to run
    
    \dontrun{
    
    ## Examples take longer than 5 seconds:
    
    rawSampleURL <- constructWQPURL('USGS-01594440','01075', '', '')
    
    rawSample <- importWQP(rawSampleURL)
    url2 <- paste0(rawSampleURL,"&zip=yes")
    rawSample2 <- importWQP(url2, TRUE)
    
    }
    \keyword{USGS}
    \keyword{data}
    \keyword{import}
    \keyword{service}
    \keyword{web}