block_geoid_to | R Documentation |
Convert the GEOID of a 2016 US Census block to the name or GEOID for the corresponding state, county, tract or block group.
block_geoid_to(geoid, to, name = FALSE)
block_geoid_to_state(geoid, name = TRUE)
block_geoid_to_county(geoid, name = TRUE)
block_geoid_to_tract(geoid)
block_geoid_to_block_group(geoid)
geoid |
A character vector of 15-digit US Census block GEOIDs. |
to |
One of "state", "county", "tract", "block group" or (as an alias) "blockgroup". |
name |
Should the function return the state/county name rather than FIPS code? |
For details of the format of US Census GEOIDs, see https://www.census.gov/programs-surveys/geography/guidance/geo-identifiers.html.
A character vector of GEOIDs or names.
block_geoid_to("360810443021005", to = "county", name = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.