View source: R/clean.fips1215.R
clean.fips1215 | R Documentation |
Check if valid Census block group or block FIPS, warn if not, add missing leading zero if inferred.
clean.fips1215(fips)
fips |
Vector of one or more elements, ideally character class, ideally 12 or 15 characters long (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
Returns a vector of one or more character elements, same lengths as fips, NA if NA input
clean.fips()
samplefips <- c("011030001003", "011030001003001", 11030001003001, 35, 1, NA, 'invalidtext', '02')
clean.fips1215(samplefips)
clean.fips1215("011030001003001")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.