stateCdLookup | R Documentation |
Function to simplify finding state and state code definitions. Used in readNWISdata
and readWQPdata
.
stateCdLookup(input, outputType = "postal", country = "US")
input |
could be character (full name, abbreviation, id), or numeric (id) |
outputType |
character can be "postal", "fullName", "tableIndex", or "id". |
country |
description |
fullName <- stateCdLookup("wi", "fullName")
abbriev <- stateCdLookup("Wisconsin", "postal")
id <- stateCdLookup("WI", "id")
name <- stateCdLookup(55, "fullName")
fips <- stateCdLookup("WI", "fips")
canada_st <- stateCdLookup(13, "fullName", country = "CA")
mexico_st <- stateCdLookup(13, "fullName", country = "MX")
stateCdLookup(c("West Virginia", "Wisconsin", 200, 55, "MN"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.