<div dir="ltr">I thought that people might want to see the analysis that I wound up doing. Thank you all for your help!<div><br></div><div><a href="http://blog.revolutionanalytics.com/2015/04/exploring-san-francisco-with-choropleth.html">http://blog.revolutionanalytics.com/2015/04/exploring-san-francisco-with-choropleth.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 2:13 PM, Ezra Haber Glenn <span dir="ltr">&lt;<a href="mailto:eglenn@mit.edu" target="_blank">eglenn@mit.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Yes -- the warning is simply there because as of the most recent date<br>
of the package, the 2013 data wasn&#39;t available.  If you run your code,<br>
you&#39;ll see that despite the warning, the data gets fetched.  (This is<br>
why it is a warning and not an error, but I know it&#39;s confusing and<br>
will change in the next version.)<br>
<br>
--Ezra<br>
<div><div class="h5"><br>
At Thu, 2 Apr 2015 13:26:17 -0700, arilamstein wrote:<br>
&gt;<br>
&gt; Thanks Mark.<br>
&gt;<br>
&gt; I need to use zctas because I am creating a demo of my package which visualizes zctas in R<br>
&gt; (<a href="https://github.com/arilamstein/choroplethrZip" target="_blank">https://github.com/arilamstein/choroplethrZip</a>).<br>
&gt;<br>
&gt; When I try to access 2013 data I get this warning:<br>
&gt;<br>
&gt; library(acs)<br>
&gt; zip_geo = geo.make(zip.code = &quot;*&quot;)<br>
&gt; data = acs.fetch(geography=zip_geo, table.number = &quot;B03002&quot;, col.names = &quot;pretty&quot;, endyear<br>
&gt; = 2013, span = 5)<br>
&gt;<br>
&gt; Warning messages:<br>
&gt; 1: In acs.fetch(geography = zip_geo, table.number = &quot;B03002&quot;, col.names = &quot;pretty&quot;,  :<br>
&gt;   As of the date of this version of the acs package<br>
&gt;   Census API did not provides data for selected endyear<br>
&gt;<br>
&gt; Is this warning spurious?<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Ari<br>
&gt;<br>
&gt; On Thu, Apr 2, 2015 at 9:17 AM, Corrales, Mark &lt;<a href="mailto:Corrales.Mark@epa.gov">Corrales.Mark@epa.gov</a>&gt; wrote:<br>
&gt;<br>
&gt;     I would suggest using newer data (2009-2013 is available), and consider using tracts<br>
&gt;     (or even block groups) instead of zip codes/ZCTAs because they are more stable over<br>
&gt;     time and can be rolled up into county totals, etc.<br>
&gt;<br>
&gt;     As to which table, you might consider table B03002, which in one table gives you all<br>
&gt;     the counts you need, from which you can calculate percentages, for these eight race/<br>
&gt;     ethnicity groups (which add up to the total population):<br>
&gt;<br>
&gt;     Hispanic or Latino<br>
&gt;     Not Hispanic or Latino: White alone<br>
&gt;     Not Hispanic or Latino: Black or African American alone<br>
&gt;     Not Hispanic or Latino: American Indian and Alaska Native alone<br>
&gt;     Not Hispanic or Latino: Asian alone<br>
&gt;     Not Hispanic or Latino: Native Hawaiian and Other Pacific Islander alone<br>
&gt;     Not Hispanic or Latino: Some other race alone<br>
&gt;     Not Hispanic or Latino: Two or more races<br>
&gt;<br>
&gt;     Just divide the count by the Total shown in that same table.<br>
&gt;<br>
&gt;     <a href="http://factfinder.census.gov/faces/affhelp/jsf/pages/metadata.xhtml?lang=en&amp;type=table" target="_blank">http://factfinder.census.gov/faces/affhelp/jsf/pages/metadata.xhtml?lang=en&amp;type=table</a><br>
&gt;     &amp;id=table.en.ACS_13_5YR_B03002#<br>
&gt;<br>
&gt;     -----Original Message-----<br>
&gt;     From: <a href="mailto:acs-r-bounces@mit.edu">acs-r-bounces@mit.edu</a> [mailto:<a href="mailto:acs-r-bounces@mit.edu">acs-r-bounces@mit.edu</a>] On Behalf Of<br>
&gt;     <a href="mailto:acs-r-request@mit.edu">acs-r-request@mit.edu</a><br>
&gt;     Sent: Thursday, April 02, 2015 12:02 PM<br>
&gt;     To: <a href="mailto:acs-r@mit.edu">acs-r@mit.edu</a><br>
&gt;     Subject: acs-r Digest, Vol 15, Issue 1<br>
&gt;<br>
&gt;     Send acs-r mailing list submissions to<br>
&gt;             <a href="mailto:acs-r@mit.edu">acs-r@mit.edu</a><br>
&gt;<br>
&gt;     To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;             <a href="http://mailman.mit.edu/mailman/listinfo/acs-r" target="_blank">http://mailman.mit.edu/mailman/listinfo/acs-r</a><br>
&gt;     or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;             <a href="mailto:acs-r-request@mit.edu">acs-r-request@mit.edu</a><br>
&gt;<br>
&gt;     You can reach the person managing the list at<br>
&gt;             <a href="mailto:acs-r-owner@mit.edu">acs-r-owner@mit.edu</a><br>
&gt;<br>
&gt;     When replying, please edit your Subject line so it is more specific than &quot;Re: Contents<br>
&gt;     of acs-r digest...&quot;<br>
&gt;<br>
&gt;     Today&#39;s Topics:<br>
&gt;<br>
&gt;        1. ACS tables that deal with race (<a href="mailto:arilamstein@gmail.com">arilamstein@gmail.com</a>)<br>
&gt;<br>
&gt;     ----------------------------------------------------------------------<br>
&gt;<br>
&gt;     Message: 1<br>
&gt;     Date: Wed, 1 Apr 2015 16:35:53 -0700<br>
&gt;     From: &lt;<a href="mailto:arilamstein@gmail.com">arilamstein@gmail.com</a>&gt;<br>
&gt;     Subject: [acs-r] ACS tables that deal with race<br>
&gt;     To: acs-r &lt;<a href="mailto:acs-r@mit.edu">acs-r@mit.edu</a>&gt;<br>
&gt;     Message-ID:<br>
&gt;             &lt;CAEO2ku+owU0nFvgthQzm0SG_Rwun0xN8jhiMC=<a href="mailto:3miZkjbFMAhw@mail.gmail.com">3miZkjbFMAhw@mail.gmail.com</a>&gt;<br>
&gt;     Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt;     Hello,<br>
&gt;<br>
&gt;     I am a bit confused by the ACS tables that deal with race.  For reference, I am<br>
&gt;     currently working with the 2011 5 year ACS tables which are listed here &lt;http://<br>
&gt;     <a href="http://factfinder.census.gov/faces/affhelp/jsf/pages/metadata.xhtml?lang=en&amp;type=dataset&amp;id=" target="_blank">factfinder.census.gov/faces/affhelp/jsf/pages/metadata.xhtml?lang=en&amp;type=dataset&amp;id=</a><br>
&gt;     dataset.en.ACS_11_5YR&gt;,<br>
&gt;     and I am trying to get data on ZCTAs. My goal is to create choropleth maps of San<br>
&gt;     Francisco that show key demographic information.<br>
&gt;<br>
&gt;     Table B02008 is listed as WHITE ALONE OR IN COMBINATION WITH ONE OR MORE OTHER RACES<br>
&gt;     but it returns a count of people, not a percentage of the total population. There seem<br>
&gt;     to be various &quot;G&quot; tables that give the percentage of people who are white alone (e.g.<br>
&gt;     GCT0201), but a) none of those geographic units are ZCTAs and b) IIRC acs.r cannot<br>
&gt;     retrieve tables that start with a G.<br>
&gt;<br>
&gt;     Presumably I could just divide those numbers by the result of table B00001 (UNWEIGHTED<br>
&gt;     SAMPLE COUNT OF THE POPULATION ) or B01003 (TOTAL POPULATION ), but I&#39;m not sure what<br>
&gt;     the difference is between those two tables are. Can someone give me some pointers?<br>
&gt;<br>
&gt;     Thanks.<br>
&gt;<br>
&gt;     Ari<br>
&gt;     -------------- next part --------------<br>
&gt;     An HTML attachment was scrubbed...<br>
&gt;     URL: <a href="http://mailman.mit.edu/pipermail/acs-r/attachments/20150401/81f00252/" target="_blank">http://mailman.mit.edu/pipermail/acs-r/attachments/20150401/81f00252/</a><br>
&gt;     attachment-0001.htm<br>
&gt;<br>
&gt;     ------------------------------<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     acs-r mailing list<br>
&gt;     <a href="mailto:acs-r@mit.edu">acs-r@mit.edu</a><br>
&gt;     <a href="http://mailman.mit.edu/mailman/listinfo/acs-r" target="_blank">http://mailman.mit.edu/mailman/listinfo/acs-r</a><br>
&gt;<br>
&gt;     End of acs-r Digest, Vol 15, Issue 1<br>
&gt;     ************************************<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     acs-r mailing list<br>
&gt;     <a href="mailto:acs-r@mit.edu">acs-r@mit.edu</a><br>
&gt;     <a href="http://mailman.mit.edu/mailman/listinfo/acs-r" target="_blank">http://mailman.mit.edu/mailman/listinfo/acs-r</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div>--<br>
Ezra Haber Glenn, AICP<br>
Department of Urban Studies and Planning<br>
Massachusetts Institute of Technology<br>
77 Massachusetts Ave., Room 7-337<br>
Cambridge, MA 02139<br>
<a href="mailto:eglenn@mit.edu">eglenn@mit.edu</a><br>
<a href="http://dusp.mit.edu/faculty/ezra-glenn" target="_blank">http://dusp.mit.edu/faculty/ezra-glenn</a> | <a href="http://eglenn.scripts.mit.edu/citystate/" target="_blank">http://eglenn.scripts.mit.edu/citystate/</a><br>
<a href="tel:617.253.2024" value="+16172532024">617.253.2024</a> (w)<br>
<a href="tel:617.721.7131" value="+16177217131">617.721.7131</a> (c)<br>
<br>
//----------------------------------------------------------------------\\<br>
||         Sick and tired of surveillance?  Use GnuPG with me.          ||<br>
||                                                                      ||<br>
||                  My public key is available here:                    ||<br>
|| &lt;<a href="https://pgp.mit.edu/pks/lookup?op=vindex&amp;search=0x322B632172CDB8DF" target="_blank">https://pgp.mit.edu/pks/lookup?op=vindex&amp;search=0x322B632172CDB8DF</a>&gt; ||<br>
\\----------------------------------------------------------------------//<br>
</blockquote></div><br></div>