From 492d299d1114069ecfaf998a675f94bdba80eeab Mon Sep 17 00:00:00 2001 From: unknown <ldecicco@usgs.gov> Date: Wed, 8 Apr 2015 17:00:36 -0500 Subject: [PATCH] Added help. --- man/stateCdLookup.Rd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 man/stateCdLookup.Rd diff --git a/man/stateCdLookup.Rd b/man/stateCdLookup.Rd new file mode 100644 index 00000000..61d4f867 --- /dev/null +++ b/man/stateCdLookup.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2 (4.1.0): do not edit by hand +% Please edit documentation in R/readNWISdata.r +\name{stateCdLookup} +\alias{stateCdLookup} +\title{State code look up} +\usage{ +stateCdLookup(input, outputType = "postal") +} +\arguments{ +\item{input}{could be character (full name, abbreviation, id), or numeric (id)} + +\item{outputType}{character can be "postal","fullName","tableIndex", or "id".} +} +\description{ +Function to simplify finding state and state code definitions. Used in \code{readNWISdata} +and \code{readWQPdata}. +} +\examples{ +fullName <- stateCdLookup("wi", "fullName") +abbriev <- stateCdLookup("Wisconsin", "postal") +id <- stateCdLookup("WI", "id") +name <- stateCdLookup(55, "fullName") +index <- stateCdLookup("WI", "tableIndex") +stateCd[index,] +} + -- GitLab