get.fips.bg | R Documentation |
Extract partial FIPS code from longer FIPS code
get.fips.bg(fips)
fips |
Vector of one or more elements, character class, 12 or 15 characters long FIPS (block group or block), required. |
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 It does not check to see if the codes are valid other than counting how many characters each has.
Returns a vector of one or more character elements, same lengths as fips
clean.fips()
samplefips <- c("011030001003", "011030001003001", 11030001003001, 35, 1, NA, 'invalidtext', '02')
get.fips.bg(samplefips)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.