U.S. flag

An official website of the United States government

Skip Header


Browsing the 2010 Census SF2 Summary File with R

Written by:
SSC2022-01

Abstract

The U.S. Census Bureau releases tabulations based on the decennial census to the public in multiple formats. Data provided on the Census Bureau website may be especially useful to researchers in secure computing environments where network access is restricted. However, users may find the format of this data difficult to use compared to other formats such as the website https://data.census.gov. This paper provides a tutorial for experienced R users to consume census data from the website, specifically focusing on summary File SF2 from the 2010 decennial census. We introduce the sfreader package which provides utility functions and helper tables to facilitate use of the data. Examples demonstrate the organization of tables, geographies, and races among the 2010 SF2 files. Use of sfreader and widely adopted R packages such as tidyverse and sf (“Simple Features”) is demonstrated to navigate and process the data.

Page Last Revised - August 15, 2022
Is this page helpful?
Thumbs Up Image Yes Thumbs Down Image No
NO THANKS
255 characters maximum 255 characters maximum reached
Thank you for your feedback.
Comments or suggestions?

Top

Back to Header