View source: R/geosubset-fcns.R
geosubset | R Documentation |
Subsets a dataframe with one column representing tracts, counties, census block groups, or another areal unit with STATE+COUNTY fips codes comprising the first 5-characters of their geoid (as detailed here https://www.census.gov/programs-surveys/geography/guidance/geo-identifiers.html).
geosubset(x, subset.cols = c("geoid"), ...)
x |
df with at least 1 column containing state+county geoid hierarchy |
subset.cols |
columns to subset to. |
cz_name , cz , countyfp , cbsa_id , plc_id |
Region/county/place to subset to |
Can take cz or cbsa or place to subset to, and use one of the xwalks in this package to determine correspondence. In this case, attention should be payed to the year of the areal unit.
df x
, subsetted to the specified region.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.