You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with data at the ZIPCODE-YEAR level for 2015-2021, and wanted to merge in ZCTA shapes for mapping...
tigris::zctas() does not allow setting the state parameter unless year is set to 2000 or 2010 ... In contrast, with tidycensus::get_acs(geography = "zcta") we can specify state if year is between 2011 and 2019. It does fail if year is outside the range though...
Why are the years for which one can specify state when dowloading ZCTA data not the same for both libraries?
On a related note, are ZCTA geometry returned by these two functions the same for a given year (so long as relevant parameters, like cb, are set to the same value as well)?
Side note: it was only through Chapter 7 of Analyzing US Census Data that I realized that (it is implied) get_acs() has cb = TRUE as default, whereas zctas() has cb = FALSE as default according to its documentation...I could not find any tidycensus documentation confirming the former, though...
Edit: Follow-up comments on issue #378 are relevant... Thread has answers for why the code doesn't work from 2020 onward. However it doesn't answer why 2011-2019 even work in the first place, when they don't work for zctas()...unless, perhaps, the answer is that get_acs() actually uses filter_by argument in zctas() ?
The text was updated successfully, but these errors were encountered:
gah-bo
changed the title
tidycensus::get_acs(geography = "zcta") vs tigris::zctas()
tidycensus::get_acs() does not have the limitations that tigris::zctas() does for specifying state for a given year
Mar 27, 2024
gah-bo
changed the title
tidycensus::get_acs() does not have the limitations that tigris::zctas() does for specifying state for a given year
tidycensus::get_acs() does not have the limitations that tigris::zctas() does for specifying state for a given yearMar 27, 2024
gah-bo
changed the title
tidycensus::get_acs() does not have the limitations that tigris::zctas() does for specifying state for a given yeartidycensus::get_acs() does not have the limitations that tigris::zctas() does for specifying state for a given yearMar 27, 2024
I am working with data at the ZIPCODE-YEAR level for 2015-2021, and wanted to merge in ZCTA shapes for mapping...
tigris::zctas()
does not allow setting thestate
parameter unlessyear
is set to 2000 or 2010 ... In contrast, withtidycensus::get_acs(geography = "zcta")
we can specifystate
ifyear
is between 2011 and 2019. It does fail ifyear
is outside the range though...years
for which one can specifystate
when dowloading ZCTA data not the same for both libraries?geometry
returned by these two functions the same for a givenyear
(so long as relevant parameters, likecb
, are set to the same value as well)?Side note: it was only through Chapter 7 of Analyzing US Census Data that I realized that (it is implied)
get_acs()
hascb = TRUE
as default, whereaszctas()
hascb = FALSE
as default according to its documentation...I could not find anytidycensus
documentation confirming the former, though...Edit: Follow-up comments on issue #378 are relevant... Thread has answers for why the code doesn't work from 2020 onward. However it doesn't answer why 2011-2019 even work in the first place, when they don't work for
zctas()
...unless, perhaps, the answer is thatget_acs()
actually usesfilter_by
argument inzctas()
?The text was updated successfully, but these errors were encountered: