constructUseURL: Construct URL for NWIS water use data service

Description Usage Arguments Value Examples

View source: R/constructNWISURL.r

Description

Reconstructs URLs to retrieve data from here: https://waterdata.usgs.gov/nwis/wu

Usage

1
constructUseURL(years, stateCd, countyCd, categories)

Arguments

years

integer Years for data retrieval. Must be years ending in 0 or 5, or "ALL", which retrieves all available years.

stateCd

could be character (full name, abbreviation, id), or numeric (id)

countyCd

could be numeric (County IDs from countyCdLookup) or character ("ALL")

categories

character Two-letter cateogory abbreviation(s)

Value

url string

Examples

1
url <- constructUseURL(years=c(1990,1995),stateCd="Ohio",countyCd = c(1,3), categories = "ALL")

dataRetrieval documentation built on Sept. 14, 2021, 5:16 p.m.