<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>I didn't think tract level data were available for the 1-year, only for the 5-year.<div><br></div><div>Ricardo</div><br><br>-------- Original message --------<br>From: acs-r-request@mit.edu <br>Date: 03/02/2018 11:01 AM (GMT-06:00) <br>To: acs-r@mit.edu <br>Subject: acs-r Digest, Vol 43, Issue 2 <br><br>Send acs-r mailing list submissions to<br>        acs-r@mit.edu<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>        http://mailman.mit.edu/mailman/listinfo/acs-r<br>or, via email, send a message with subject or body 'help' to<br>        acs-r-request@mit.edu<br><br>You can reach the person managing the list at<br>        acs-r-owner@mit.edu<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of acs-r digest..."<br><br><br>Today's Topics:<br><br> 1. Re: Error in downloading 2016 census data? (Ezra Haber Glenn)<br> 2. acs version 2.1.3: test-drive it now (Ezra Haber Glenn)<br> 3. acs package update / 2.1.3: 2016 5-year data fix<br> (Ezra Haber Glenn)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 01 Mar 2018 12:05:31 -0500<br>From: Ezra Haber Glenn <eglenn@mit.edu><br>Subject: Re: [acs-r] Error in downloading 2016 census data?<br>To: Jacob Coblentz <coblentz@mit.edu><br>Cc: acs-r <acs-r@mit.edu><br>Message-ID: <86y3jbk9pg.wl-eglenn@mit.edu><br>Content-Type: text/plain; charset=ISO-8859-7<br><br><br>PS: Is it also possible that the tract-level 2016/1year ACS data is<br>not available via the API (yet)? See<br><https://api.census.gov/data/2016/acs/acs1/geography.html>.<br><br>I am able to get state and county data for 2016/1yr, but not tract.<br><br>--Ezra<br><br>On Thu, 01 Mar 2018 10:23:51 -0500, Ezra Haber Glenn wrote:<br>> <br>> <br>> Ugh. Here's the deal, I think:<br>> <br>> It seems that the census folks have *once again* changed the format of<br>> the ACS variable lookup code XML files, which is messing up the<br>> package -- sorry about that. (Each year has a different set of<br>> variable code tables, so this problem only affects the latest one,<br>> 2016.)<br>> <br>> Basically, at this point, the package needs to make all sorts of<br>> little corrections for each different endyear/span combination. I'll<br>> try to troubleshoot and get it to work. <br>> <br>> In the meanwhile, here's a clever trick you can use to trick the<br>> package to use the variable numbers from a previous year (which is<br>> safe, unless the variable numbers change, which is pretty rare):<br>> <br>> # save a lookup from a year that works<br>> a=acs.lookup(table.number = "B02001", endyear=2015, span=5)<br>> <br>> # use this in your new fetch:<br>> acs.fetch(geography = all_counties, variable=a, endyear=2016, span=5)<br>> <br>> <br>> Ta-da!<br>> <br>> Let me know if that sort of thing works, or if you have more questions.<br>> <br>> <br>> --Ezra<br>> <br>> <br>> <br>> On Thu, 01 Mar 2018 09:01:35 -0500, Jacob Coblentz wrote:<br>> > <br>> > [1 <multipart/signed (7bit)>]<br>> > [1.1 <multipart/alternative (7bit)>]<br>> > [1.1.1 <text/plain; utf-8 (quoted-printable)>]<br>> > [1.1.2 <text/html; utf-8 (quoted-printable)>]<br>> > require(acs)<br>> > api.key.install(key=my_key)<br>> > all_counties<-geo.make(state="*",county="*")<br>> > race_table<-acs.fetch(endyear = 2016, span=1, geography = all_counties, table.number = "B02001", col.names = "pretty")<br>> > <br>> > Error in data.frame(variable.code = names, table.number = table.numbers, : <br>> > arguments imply differing number of rows: 3, 5<br>> > <br>> > What?s up with this error?<br>> > <br>> > <br>> > [1.2 smime.p7s <application/pkcs7-signature (base64)>]<br>> > Bad signature from BFFC03C590AF469434E317E8CFA9EE5397231274 /CN=Jacob Coblentz/OU=Client CA v1/O=Massachusetts Institute of Technology/ST=Massachusetts/C=US/EMail=coblentz@MIT.EDU<br>> > [2 <text/plain; us-ascii (7bit)>]<br>> > _______________________________________________<br>> > acs-r mailing list<br>> > acs-r@mit.edu<br>> > http://mailman.mit.edu/mailman/listinfo/acs-r<br>> <br>> --<br>> Ezra Haber Glenn, AICP<br>> Department of Urban Studies and Planning<br>> Massachusetts Institute of Technology<br>> 77 Massachusetts Ave., Room 7-346<br>> Cambridge, MA 02139<br>> eglenn@mit.edu <br>> http://dusp.mit.edu/faculty/ezra-glenn<br>> 617.253.2024 (w)<br>> 617.721.7131 (c)<br>> <br>> _______________________________________________<br>> acs-r mailing list<br>> acs-r@mit.edu<br>> http://mailman.mit.edu/mailman/listinfo/acs-r<br><br>--<br>Ezra Haber Glenn, AICP<br>Department of Urban Studies and Planning<br>Massachusetts Institute of Technology<br>77 Massachusetts Ave., Room 7-346<br>Cambridge, MA 02139<br>eglenn@mit.edu <br>http://dusp.mit.edu/faculty/ezra-glenn<br>617.253.2024 (w)<br>617.721.7131 (c)<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 01 Mar 2018 16:14:03 -0500<br>From: Ezra Haber Glenn <eglenn@mit.edu><br>Subject: [acs-r] acs version 2.1.3: test-drive it now<br>To: acs-r <acs-r@mit.edu><br>Message-ID: <86sh9jjy78.wl-eglenn@mit.edu><br>Content-Type: text/plain; charset=US-ASCII<br><br><br>Dear acs-r community:<br><br>In order to address some pesky issues related to fetching 2016 ACS<br>data and strange census XML variable tables, we've update the package<br>with a quick patch. As a special benefit to our loyal members of the<br>the acs.R mailing list (technically: as a way to recruit some<br>beta-testers), we are making available a special sneak-peak,<br>pre-release version for you to try out.<br><br>Pretty much everything should work the same --- no improvements, just<br>a patch to allow you to get 2016 data.<br><br>*** Downloading and installing<br><br>To install the updated version, simply fire up an R session and type:<br><br>> install.packages("http://web.mit.edu/eglenn/www/acs/acs_2.1.3.tar.gz", <br> clean=T, repos=NULL)<br>> acs.tables.install()<br><br>If you prefer to download it first, you can grab it from<br><http://web.mit.edu/eglenn/www/acs/acs_2.1.3.tar.gz>. After<br>downloading, you can install via the command line:<br><br><br>$ R CMD INSTALL acs_2.1.3.tar.gz --clean<br><br><br>or via an R session:<br><br><br>> install.packages(pkgs="acs_2.1.3.tar.gz", clean=T, repos=NULL)<br>> acs.tables.install()<br><br>Don't forget to reinstall or "api.key.migrate()" your api key if it<br>doesn't seem to have been migrated during install. I also strongly<br>recommend you run "acs.tables.install()" as well -- you only need to<br>do this once per installation (or update), and it will really speed up<br>the package.<br><br><br><br>** Please note: this fix is more of a "workaround" than a true fix:<br> starting with the 2016 release, the Census Bureau changed the<br> format for the XML variable lookup tables and calls to acs.lookup<br> (and acs.fetch) were failing; the quick solution was to simply use<br> the 2015 lookup tables for these requests, which should be safe in<br> most situations, since table numbers and variable codes generally<br> do not change from year to year. (In some situations this<br> assumption is not true: see<br> https://www.census.gov/programs-surveys/acs/technical-documentation/table-and-geography-changes/2016/5-year.html<br> for details.)<br><br>--<br>Ezra Haber Glenn, AICP<br>Department of Urban Studies and Planning<br>Massachusetts Institute of Technology<br>77 Massachusetts Ave., Room 7-346<br>Cambridge, MA 02139<br>eglenn@mit.edu <br>http://dusp.mit.edu/faculty/ezra-glenn<br>617.253.2024 (w)<br>617.721.7131 (c)<br><br><br>------------------------------<br><br>Message: 3<br>Date: Fri, 02 Mar 2018 11:32:54 -0500<br>From: Ezra Haber Glenn <eglenn@mit.edu><br>Subject: [acs-r] acs package update / 2.1.3: 2016 5-year data fix<br>To: acs-r <acs-r@mit.edu><br>Message-ID: <861sh21lqh.wl-eglenn@mit.edu><br>Content-Type: text/plain; charset=BIG5<br><br><br>Dear acs.R users:<br><br>In order to address some pesky issues related to fetching 2016 ACS<br>data, we've updated the acs package with a quick patch. Pretty much<br>everything should work the same --- no improvements, no new features,<br>just a patch to allow you to get 2016 data.<br><br>Please note: this fix is more of a "workaround" than a true fix:<br>starting with the 2016 release, the Census Bureau changed the format<br>for the XML variable lookup tables and calls to acs.lookup (and<br>acs.fetch) were failing; the quick solution was to simply use the 2015<br>lookup tables for these requests, which should be safe in most<br>situations, since table numbers and variable codes generally do not<br>change from year to year. (In some situations this assumption is not<br>true: see ?acs.lookup and<br><https://www.census.gov/programs-surveys/acs/technical-documentation/table-and-geography-changes/2016/5-year.html><br>for details.)<br><br>No other aspects of the package were changed with this release. <br><br><br>** Downloading and installing<br><br>To install the updated version, simply fire up an R session and type:<br><br>> install.packages("acs", clean=T)<br>> acs.tables.install()<br><br>If you're updating from a previous version, don't forget to re-install<br>or "api.key.migrate()" your api key if it doesn't seem to have been<br>migrated during install. We also strongly recommend you run<br>"acs.tables.install()" as well ? you only need to do this once per<br>installation (or update), and it will really speed up the package.<br><br><br>Thanks for using the package, and please continue to let me know if<br>you notice any problems or odd behavior.<br><br>--Ezra<br><br>--<br>Ezra Haber Glenn, AICP<br>Department of Urban Studies and Planning<br>Massachusetts Institute of Technology<br>77 Massachusetts Ave., Room 7-346<br>Cambridge, MA 02139<br>eglenn@mit.edu <br>http://dusp.mit.edu/faculty/ezra-glenn<br>617.253.2024 (w)<br>617.721.7131 (c)<br><br><br><br>------------------------------<br><br>_______________________________________________<br>acs-r mailing list<br>acs-r@mit.edu<br>http://mailman.mit.edu/mailman/listinfo/acs-r<br><br><br>End of acs-r Digest, Vol 43, Issue 2<br>************************************<br></body></html>