get.epa.region: Identify EPA Region for given state (or FIPS)

View source: R/get.epa.region.R

get.epa.regionR Documentation

Identify EPA Region for given state (or FIPS)

Description

Identify US Environmental Protection Agency region(s) containing given state(s) (or via FIPS)

Usage

get.epa.region(state)

Arguments

state

Vector of numeric or character class, required. Can be state FIPs as number or character, 2-character state abbreviation, or full state name

Details

For EPA Regions, see http://www2.epa.gov/aboutepa#pane-4 or http://www2.epa.gov/aboutepa/visiting-regional-office. For information on FIPS codes, see http://www.census.gov/geo/reference/ansi.html, and also see https://www.census.gov/geo/reference/geoidentifiers.html

Value

Returns a vector of numbers, same length as state

Examples

 myregions <- get.epa.region() # to see full list
 myregions <- get.epa.region('DC') # for one state by 2-letter abbreviation
 myregions <- get.epa.region(c('AK', 'NY', 'PR')) # for a vector of 2-letter abbreviations
 myregions <- get.epa.region(c('alaska', 'new york', 'puerto rico')) # vector of state names
 myregions <- get.epa.region(c('04', '36', '72')) # FIPS codes, character with leading zero
 myregions <- get.epa.region(c(4,36,72)) # state FIPS codes, numeric with no leading zeroes
 myregions <- get.epa.region(c('NY', 'Ohio')) # CANNOT MIX WAYS TO DEFINE STATES- PICK 1 FORMAT
 @seealso [clean.fips()]

ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.