Skip to content

Instantly share code, notes, and snippets.

@jhollist
Created June 2, 2017 14:11
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 jhollist/010bdbb78c1cf5ce1a55ae4dd6830879 to your computer and use it in GitHub Desktop.
Save jhollist/010bdbb78c1cf5ce1a55ae4dd6830879 to your computer and use it in GitHub Desktop.
# http://api.census.gov/data/2010/sf1?get=P0010001,P0030001&for=block:1000&in=state:44+county:003+tract:020101
getCensus(name = "sf1",vintage = 2010, key = Sys.getenv("CENSUS_API_KEY"),
vars = "P0010001", region = "block:1000", regionin = "state:44+county:003+tract:020101")
# Throws error
# Error in data[, c(which(sapply(data, class) != "numeric"), which(sapply(data, :
# incorrect number of dimensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment