Skip to content

Instantly share code, notes, and snippets.

@dholstius
Created August 25, 2017 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dholstius/d6518b0f93dd234acb57b73208307fc5 to your computer and use it in GitHub Desktop.
Save dholstius/d6518b0f93dd234acb57b73208307fc5 to your computer and use it in GitHub Desktop.
Reprex for UScensus2010 block level demographics
library(UScensus2010)
library(UScensus2010tract)
library(UScensus2010blkgrp)
library(UScensus2010blk)
Cook_tracts <- UScensus2010::county(state = "Illinois", name = "Cook", level = "tract")
Cook_tracts@data[1:8, 1:8]
plot(Cook_tracts)
Cook_blkgrps <- UScensus2010::county(state = "Illinois", name = "Cook", level = "blkgrp")
Cook_blkgrps@data[1:8, 1:8]
Cook_blks <- UScensus2010::county(state = "Illinois", name = "Cook", level = "blk")
Cook_blks@data[1:8, 1:8] # FIXME: yields "NA" just about everywhere, including within row.names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment