Retrieve groundwater levels from the National Ground Water Monitoring Network.
Source:R/readNGWMNdata.R
readNGWMNlevels.Rd
Retrieve groundwater levels from the National Ground Water Monitoring Network.
Arguments
- siteNumbers
character Vector of feature IDs formatted with agency code and site number separated by a period or semicolon, e.g.
USGS.404159100494601
.- asDateTime
logical Should dates and times be converted to date/time objects, or returned as character? Defaults to
TRUE
. Must be set toFALSE
if a site contains non-standard dates.- tz
character to set timezone attribute of dateTime. Default is "UTC", and converts the date times to UTC, properly accounting for daylight savings times based on the data's provided time zone offset. Possible values to provide are "America/New_York", "America/Chicago", "America/Denver", "America/Los_Angeles", "America/Anchorage", as well as the following which do not use daylight savings time: "America/Honolulu", "America/Jamaica", "America/Managua", "America/Phoenix", and "America/Metlakatla". See also
OlsonNames()
for more information on time zones.
Examples
# \donttest{
# one site
site <- "USGS.430427089284901"
# oneSite <- readNGWMNlevels(siteNumbers = site)
# multiple sites
sites <- c("USGS:272838082142201", "USGS:404159100494601", "USGS:401216080362703")
# multiSiteData <- readNGWMNlevels(sites)
# non-USGS site
site <- "MBMG.103306"
# data <- readNGWMNlevels(siteNumbers = site, asDateTime = FALSE)
# site with no data returns empty data frame
noDataSite <- "UTGS.401544112060301"
# noDataSite <- readNGWMNlevels(siteNumbers = noDataSite)
# }