Closed gah-bo closed 9 months ago
Possibly! That would be a Census API issue (I believe) and not a tidycensus issue. Perhaps there is a max length of the URL that can be sent to the API.
It sounds like your best bet is to chunk your ZCTAs on the R side and re-assemble them. You might also consider the filter_by
argument which allows you to retrieve data within a given overlay (e.g. a state shape).
I am trying to pull in data for all ZCTA in the state of NY. Since geography="zcta" does not have the option to filter by state I instead opted to pass the list of ZCTAs themselves into the
zcta
argument. The vector of ZCTAs IDs I want comes from downloading the ZCTA:Counties Census reference file and keeping all rows in which the county is in NY.Code: Note I am well aware a ZCTA can be linked to >1 county; I use unique() to address this.
The issue is that I want
zcta=unique(includedZCTAs$GEOID_ZCTA5_20)
(ie: without the [1:925]). However, it seems like if I change925
to anything above that, I get...and if I set
zcta=unique(includedZCTAs$GEOID_ZCTA5_20)
then I get