Vote up to Idea acs package in R Vote down to Idea acs package in R


This idea is active.
Application Showcase »

acs package in R

Working with the Puget Sound Regional Council, I've modified my acs package for R to allow users to download data directly from the Census ACS API. See for more info and user guide.

Features and improvements include:

* The package is now capable of downloading data directly from the new Census American Community Survey API and importing into R (with proper statistical treatment of estimates and error, variable and geographic relabeling, and more), all through a single “acs.fetch()” function;

* The package includes a new “geo.make()” function to allow users to create their own custom geographies for organize and download data; and

* The package provides two special “lookup” tools to help filter through all the existing Census geographies (with the “geo.lookup()” function) and tables (with the “acs.lookup()” function) to find exactly what they want. These functions return new R “lookup” objects which can be saved, manipulated, and passed to acs.fetch() for downloading data.

(Still beta, but getting close -- any help/testing appreciated.)


Submitted by 2 years ago

Comments (4)

  1. Moderator

    Thanks for the update. Do you plan on doing again this as other data sets become available?

    2 years ago
  2. eglenn Idea Submitter

    Assuming the format for API calls doesn't change, the package should work on any new dataset as they becomes available (5-year ACS data for other periods, as well as 3 -and 1-year data if they are added). If the xml files change (used for looking up variable codes), then I'll need to add those, which is pretty simple. So in short, yes, the package is being actively maintained and I'd love for it to be able to help users access other datasets.

    2 years ago
  3. eglenn Idea Submitter

    We've added a new worked example for using this package with block group level data -- see

    1 year ago
  4. eglenn Idea Submitter

    Just another update: the latest release of this package (version 1.1) now includes support for many more levels of census geography, including zip codes, pumas, msa, csa, congressional districts, state legislative and school districts, and more. See for more.

    1 year ago

Vote Activity Show


  1. The idea was posted
    2 years ago