if (FALSE) {
# Wrapped in \dontrun{} because it requires a Census API key.
# Get all tract GEOIDs for Manhattan
tracts <- get_geoids(geography = "tract", state = "New York", county = "New York")
tracts
# Get all block GEOIDs for the fifth tract on that list
get_geoids(geography = "block", geoid = tracts$GEOID[5])
}
Run the code above in your browser using DataLab