constructUseURL.Rd 877 Bytes
Newer Older
David Watkins's avatar
David Watkins committed
1
2
3
4
5
6
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/constructNWISURL.r
\name{constructUseURL}
\alias{constructUseURL}
\title{Construct URL for NWIS water use data service}
\usage{
7
constructUseURL(years, stateCd, countyCd, categories)
David Watkins's avatar
David Watkins committed
8
9
10
11
12
13
14
}
\arguments{
\item{years}{integer Years for data retrieval. Must be years ending in 0 or 5, or "ALL", which retrieves all available years.}

\item{stateCd}{could be character (full name, abbreviation, id), or numeric (id)}

\item{countyCd}{could be numeric (County IDs from countyCdLookup) or character ("ALL")}
15
16

\item{categories}{character Two-letter cateogory abbreviation(s)}
David Watkins's avatar
David Watkins committed
17
18
19
}
\value{
url string
David Watkins's avatar
David Watkins committed
20
21
}
\description{
Laura A DeCicco's avatar
Laura A DeCicco committed
22
Reconstructs URLs to retrieve data from here: \url{https://waterdata.usgs.gov/nwis/wu}
David Watkins's avatar
David Watkins committed
23
24
}
\examples{
25
url <- constructUseURL(years=c(1990,1995),stateCd="Ohio",countyCd = c(1,3), categories = "ALL")
David Watkins's avatar
David Watkins committed
26

David Watkins's avatar
David Watkins committed
27
28
}