walkerke / tidycensus

Load US Census boundary and attribute data as 'tidyverse' and 'sf'-ready data frames in R
https://walker-data.com/tidycensus
Other
639 stars 100 forks source link

Can't get data at block group level #386

Closed norahluo closed 3 years ago

norahluo commented 3 years ago

I was trying to get 5-year ACS data for california at block group level.

I ran var2013 <- get_acs(geography = 'block group', variables = c('B02001_001', 'B02001_002', 'B08301_001', 'B08301_010', 'B08301_019', 'B11001_001', 'B15003_001', 'B15003_022', 'B25044_001', 'B25044_003', 'B25044_010'), state = 'CA', geometry = FALSE, year = 2013, survey = 'acs5')

but get error message Error: Your API call has errors. The API message returned is error: unknown/unsupported geography heirarchy.

For year before 2013, I get error message like this Error: Cannot open "C:\Users\Norah\AppData\Local\Temp\Rtmpio8zg2"; The source could be corrupt or not supported. Seest_drivers()for a list of supported formats.

When I changed to tract level, it works for all these years.

The default year is 2019 so I suppose the package I used is up-to-date. It seems to me that for 2005-2009 to 2009-2013, it only provides data through API at the census tract level. Is there any other way to get data for these years at the block group level? Thanks!

walkerke commented 3 years ago

Thanks for the note! I've been working on this over the past week. A couple notes:

norahluo commented 3 years ago

Thanks for the information and your effort on this! Just got the 2009-2013 block group data :)