get.fips.etc: Get tract, county, state, region info from US Census block...

View source: R/get.fips.etc.R

get.fips.etcR Documentation

Get tract, county, state, region info from US Census block group FIPS codes (unused?)

Description

Use US Census block group FIPS codes to get more location information about each block group, such as State and County name.

Usage

get.fips.etc(fips, clean = TRUE)

Arguments

fips

Vector of US Census block group FIPS codes (missing leading zeroes are added).

clean

Does not use clean.fips() if FALSE, which helps if the countiesall or other list is not yet updated, for example and lacks some new FIPS code

Value

Returns a data.frame with these fields: c("FIPS", "FIPS.TRACT", "FIPS.COUNTY", "FIPS.ST", "ST", "countyname", "statename", "REGION") where FIPS is the input fips, the next few are the first few characters of fips corresponding to tract, county, or state, ST is the 2-letter state abbreviation, statename is state name, countyname is county name, and REGION is USEPA Region 1-10.

Examples

 x=c("391670211002", "060730185143", "261079609003", 02, 02610,
  "400353734002", "371190030121", "250235022001", "550439609001", "060730170302")
 get.fips.etc(x)

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