R build status CRAN Badge CRAN Downloads

tidycensus is an R package that allows users to interface with the US Census Bureau's decennial Census and five-year American Community APIs and return tidyverse-ready data frames, optionally with simple feature geometry included. Install from CRAN with the following command:


For the latest updates, install from GitHub:


To learn more about the package, please visit the package documentation at or read the book Analyzing US Census Data: Methods, Maps, and Models in R at

Note: This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.

Try the tidycensus package in your browser

Any scripts or data that you put into this service are public.

tidycensus documentation built on Aug. 8, 2023, 1:06 a.m.