R/state_codes.R

#' State codes and abbreviations for U.S. states and territories
#'
#' This data frame includes abbreviations and codes for states and territories
#' in the United States. It is intended as a lookup table.
#'
#' @format A data.frame with 69 rows and 4 variables:
#' \describe{
#' \item{state_name}{The state or territory name}
#' \item{state_abbr}{The two character abbreviation for the state or territory.}
#' \item{state_code}{A 3-digit numeric FIPS code for the state or territory.}
#' \item{jurisdiction_type}{One of \code{state}, \code{territory}, or
#' \code{district}.}
#' }
#'
#' @references U.S. Census Bureau,
#'   \href{https://www.census.gov/library/reference/code-lists/ansi.html}{Ameri.
#'   National Standards Institute (ANSI), Federal Information Processing Series
#'   (FIPS), and Other Standardized Geographic Codes} U.S. Census Bureau (2025).
"state_codes"

Try the USAboundaries package in your browser

Any scripts or data that you put into this service are public.

USAboundaries documentation built on Jan. 30, 2026, 1:07 a.m.