tigris tract data seems incorrect

Hello. I am building a map of NC and am using the tigris package to load in the census tracts. However, according to the package, there are 2660 census tracts in NC. However, I know that there are only 2,195 census tracts in NC. Does anyone have any insight into why the tigris package is dividing NC into more census tracts than there actually are?

I tried changing the parameters but was unable to get the results to indicate 2,195 census tracts, like I was expecting.

Thank you for any insight.

library(tigris)
options(tigris_use_cache = TRUE)

nc_tracts <- tracts("NC",
                    cb = TRUE,
                    year = 2022)

Wrong decade.

library(tigris)
#> To enable caching of data, set `options(tigris_use_cache = TRUE)`
#> in your R script or .Rprofile.
options(tigris_use_cache = TRUE)
nc_tracts <- tracts("NC",
                    cb = TRUE,
                    year = 2022)
dim(nc_tracts)
#> [1] 2660   14
nc_tracts <- tracts("NC", cb = TRUE)
#> Retrieving data for the year 2021
dim(nc_tracts)
#> [1] 2668   14
nc_tracts <- tracts("NC",
                    cb = TRUE,
                    year = 2020)
dim(nc_tracts)
#> [1] 2661   14
nc_tracts <- tracts("NC",
                    cb = TRUE,
                    year = 2010)
dim(nc_tracts)
#> [1] 2194   10

Created on 2023-07-30 with reprex v2.0.2

1 Like

I recommend looking at the Census tally files. Tallies

1 Like

That solved it!! Thank you!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.