Census data with R
Here are some good resources for learning about the US Census and working with Census data.
-
UVA Library Census Basics: This resource includes basic information about the two most commonly used Census surveys, the Decennial Census and the American Community Survey (ACS), as well as Census geographies.
-
Census Reporter: This resource is focused on the American Community Survey (ACS) and is especially helpful for exploring Census topics and finding Table Codes (like for Race and Hispanic Origin, and Income and Earnings, and Housing).
-
data.census.gov: This is the US Census Bureau's search interface for exploring Census data, and is helpful in exploring tables and validating data pulled from other sources, like R tidycensus.
-
Social Explorer Data Dictionary: This is a helpful resource for finding and/or validating specific table codes. Scroll the Surveys on this page to find the specific data dictionary, for example ACS 2022 (5-Year Estimates). From there, under Survey Details, click on the Dataset (American Community Survey 2022). This page provides the full list of tables - click on the desired one for the full details (Table: B01001H. Sex By Age (White Alone, Not Hispanic Or Latino))
-
Glossary of Census geography terms: This includes helpful definitions of Census geography areas, like census tract, block group and Public Use Microdata Areas (PUMA).
Follow this guide on tidycensus basics for the first steps in using the R package tidycensus, and do some simple practice pulling Census data.
For a more complete guide to working with Census data in R, see Analyzing US Census Data: Methods, Maps, and Models in R by Kyle Walker
Learn the basics for cloning a Github repo, pushing and pulling updates to/from the remote repository and command line for Mac and Windows users. See documentation: Working with the Github Repo and Command Line