View source: R/addFIPScomponents.R
addFIPScomponents | R Documentation |
Given a data.frame with FIPS col that is the full state county tract blockgroup FIPS returns the data.frame with extra columns up front, with components of FIPS.
addFIPScomponents(bg, fipscolname = "FIPS", clean = TRUE)
bg |
Data.frame with a character column called FIPS (or specified otherwise) |
fipscolname |
FIPS by default but could specify some other name to be found as col in bg |
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 |
Returns the whole data.frame with new columns in front: 'FIPS', 'FIPS.TRACT', 'FIPS.COUNTY', 'FIPS.ST', 'ST', 'statename', 'REGION'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.