Newer
Older
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{readNWISrating}
\alias{readNWISrating}
\title{Reads the current rating table for an active USGS streamgage.}
\usage{
\item{siteNumber}{character USGS site number. This is usually an 8 digit number}
\item{type}{character can be "base", "corr", or "exsa"}
}
\value{
A data frame. If \code{type} is "base," then the columns are
INDEP, typically the gage height, in feet; DEP, typically the streamflow,
in cubic feet per second; and STOR, where "*" indicates that the pair are
a fixed point of the rating curve. If \code{type} is "exsa," then an
additional column, SHIFT, is included that indicates the current shift in
the rating for that value of INDEP. If \code{type} is "corr," then the
columns are INDEP, typically the gage height, in feet; CORR, the correction
for that value; and CORRINDEP, the corrected value for CORR.\cr
If \code{type} is "base," then the data frame has an attribute called "RATING"
that describes the rating curve is included.
}
\description{
Reads the current rating table for an active USGS streamgage.
}
\note{
Not all active USGS streamgages have traditional rating curves that
relate flow to stage.
}
\examples{
siteNumber <- '01594440'
data <- readNWISrating(siteNumber, "base")