<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>&nbsp;&nbsp; 1. Re: Error in downloading 2016 census data? (Ezra Haber Glenn)<br>&nbsp;&nbsp; 2. acs version 2.1.3: test-drive it now (Ezra Haber Glenn)<br>&nbsp;&nbsp; 3. acs package update / 2.1.3: 2016 5-year data fix<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (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 &lt;eglenn@mit.edu&gt;<br>Subject: Re: [acs-r] Error in downloading 2016 census data?<br>To: Jacob Coblentz &lt;coblentz@mit.edu&gt;<br>Cc: acs-r &lt;acs-r@mit.edu&gt;<br>Message-ID: &lt;86y3jbk9pg.wl-eglenn@mit.edu&gt;<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)?&nbsp; See<br>&lt;https://api.census.gov/data/2016/acs/acs1/geography.html&gt;.<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>&gt; <br>&gt; <br>&gt; Ugh.&nbsp; Here's the deal, I think:<br>&gt; <br>&gt; It seems that the census folks have *once again* changed the format of<br>&gt; the ACS variable lookup code XML files, which is messing up the<br>&gt; package -- sorry about that.&nbsp; (Each year has a different set of<br>&gt; variable code tables, so this problem only affects the latest one,<br>&gt; 2016.)<br>&gt; <br>&gt; Basically, at this point, the package needs to make all sorts of<br>&gt; little corrections for each different endyear/span combination.&nbsp; I'll<br>&gt; try to troubleshoot and get it to work. <br>&gt; <br>&gt; In the meanwhile, here's a clever trick you can use to trick the<br>&gt; package to use the variable numbers from a previous year (which is<br>&gt; safe, unless the variable numbers change, which is pretty rare):<br>&gt; <br>&gt; # save a lookup from a year that works<br>&gt; a=acs.lookup(table.number = "B02001", endyear=2015, span=5)<br>&gt; <br>&gt; # use this in your new fetch:<br>&gt; acs.fetch(geography = all_counties, variable=a, endyear=2016, span=5)<br>&gt; <br>&gt; <br>&gt; Ta-da!<br>&gt; <br>&gt; Let me know if that sort of thing works, or if you have more questions.<br>&gt; <br>&gt; <br>&gt; --Ezra<br>&gt; <br>&gt; <br>&gt; <br>&gt; On Thu, 01 Mar 2018 09:01:35 -0500, Jacob Coblentz wrote:<br>&gt; &gt; <br>&gt; &gt; [1&nbsp; &lt;multipart/signed (7bit)&gt;]<br>&gt; &gt; [1.1&nbsp; &lt;multipart/alternative (7bit)&gt;]<br>&gt; &gt; [1.1.1&nbsp; &lt;text/plain; utf-8 (quoted-printable)&gt;]<br>&gt; &gt; [1.1.2&nbsp; &lt;text/html; utf-8 (quoted-printable)&gt;]<br>&gt; &gt; require(acs)<br>&gt; &gt; api.key.install(key=my_key)<br>&gt; &gt; all_counties&lt;-geo.make(state="*",county="*")<br>&gt; &gt; race_table&lt;-acs.fetch(endyear = 2016, span=1, geography = all_counties, table.number = "B02001", col.names = "pretty")<br>&gt; &gt; <br>&gt; &gt; Error in data.frame(variable.code = names, table.number = table.numbers,&nbsp; : <br>&gt; &gt;&nbsp;&nbsp; arguments imply differing number of rows: 3, 5<br>&gt; &gt; <br>&gt; &gt; What?s up with this error?<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; [1.2 smime.p7s &lt;application/pkcs7-signature (base64)&gt;]<br>&gt; &gt; 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>&gt; &gt; [2&nbsp; &lt;text/plain; us-ascii (7bit)&gt;]<br>&gt; &gt; _______________________________________________<br>&gt; &gt; acs-r mailing list<br>&gt; &gt; acs-r@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/acs-r<br>&gt; <br>&gt; --<br>&gt; Ezra Haber Glenn, AICP<br>&gt; Department of Urban Studies and Planning<br>&gt; Massachusetts Institute of Technology<br>&gt; 77 Massachusetts Ave., Room 7-346<br>&gt; Cambridge, MA 02139<br>&gt; eglenn@mit.edu <br>&gt; http://dusp.mit.edu/faculty/ezra-glenn<br>&gt; 617.253.2024 (w)<br>&gt; 617.721.7131 (c)<br>&gt; <br>&gt; _______________________________________________<br>&gt; acs-r mailing list<br>&gt; acs-r@mit.edu<br>&gt; 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 &lt;eglenn@mit.edu&gt;<br>Subject: [acs-r] acs version 2.1.3: test-drive it now<br>To: acs-r &lt;acs-r@mit.edu&gt;<br>Message-ID: &lt;86sh9jjy78.wl-eglenn@mit.edu&gt;<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.&nbsp; 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>&gt; install.packages("http://web.mit.edu/eglenn/www/acs/acs_2.1.3.tar.gz", <br>&nbsp; clean=T, repos=NULL)<br>&gt; acs.tables.install()<br><br>If you prefer to download it first, you can grab it from<br>&lt;http://web.mit.edu/eglenn/www/acs/acs_2.1.3.tar.gz&gt;.&nbsp; 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>&gt; install.packages(pkgs="acs_2.1.3.tar.gz", clean=T, repos=NULL)<br>&gt; 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.&nbsp; 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>&nbsp;&nbsp; starting with the 2016 release, the Census Bureau changed the<br>&nbsp;&nbsp; format for the XML variable lookup tables and calls to acs.lookup<br>&nbsp;&nbsp; (and acs.fetch) were failing; the quick solution was to simply use<br>&nbsp;&nbsp; the 2015 lookup tables for these requests, which should be safe in<br>&nbsp;&nbsp; most situations, since table numbers and variable codes generally<br>&nbsp;&nbsp; do not change from year to year.&nbsp; (In some situations this<br>&nbsp;&nbsp; assumption is not true: see<br>&nbsp;&nbsp; https://www.census.gov/programs-surveys/acs/technical-documentation/table-and-geography-changes/2016/5-year.html<br>&nbsp;&nbsp; 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 &lt;eglenn@mit.edu&gt;<br>Subject: [acs-r] acs package update / 2.1.3: 2016 5-year data fix<br>To: acs-r &lt;acs-r@mit.edu&gt;<br>Message-ID: &lt;861sh21lqh.wl-eglenn@mit.edu&gt;<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>&lt;https://www.census.gov/programs-surveys/acs/technical-documentation/table-and-geography-changes/2016/5-year.html&gt;<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>&gt; install.packages("acs", clean=T)<br>&gt; 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>