<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thanks. Also, maybe you noticed my slight typo/oversight: if you want the 1-year acs data, you should say &quot;span=1&quot; in the acs.fetch below, not span=5.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
--<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Ezra Haber Glenn, AICP <br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Department of Urban Studies and Planning<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Massachusetts Institute of Technology<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
77 Massachusetts Ave., Room 7-346<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Cambridge, MA 02139<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
eglenn@mit.edu <a href="http://dusp.mit.edu/faculty/ezra-glenn">http://dusp.mit.edu/faculty/ezra-glenn</a> 617.253.2024 (w) 617.721.7131 (c)</div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Apr 17, 2018 at 8:39 AM -0400, &quot;Harald Kliems&quot; <span dir="ltr">
&lt;<a href="mailto:harald@madisonbikes.org" target="_blank">harald@madisonbikes.org</a>&gt;</span> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="3D&quot;ltr&quot;">
<div dir="ltr">
<div>
<div>
<div>Ezra, thanks a lot for your quick response -- duh, I suspected it was something as simple as that, but couldn't figure it out myself!<br>
<br>
</div>
I really appreciate your work on this package!<br>
<br>
</div>
Best,<br>
</div>
&nbsp;Harald. <br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Apr 17, 2018 at 6:56 AM Ezra Haber Glenn &lt;<a href="mailto:eglenn@mit.edu">eglenn@mit.edu</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks for your email, and for using the package.&nbsp; The issue you've<br>
run into here is that even though you set the &quot;span=1&quot; when you saved<br>
the variables, you didn't set it for acs.fetch, which means that<br>
acs.fetch used span=5 as a default.<br>
<br>
If you use this instead, I think you'll see the same numbers as<br>
FactFinder:<br>
<br>
###########<br>
## set geography to city of Madison, Wisconsin<br>
Madison &lt;- geo.make(state=&quot;WI&quot;, place = 48000)<br>
<br>
## select only the total, car/truck/van, public transport, bicycle,<br>
walk variables from table B08006<br>
TransitVars &lt;- acs.lookup(2016, span = 1, table.number = &quot;B08006&quot;,<br>
dataset = &quot;acs&quot;)[c(1,2,8,14,15)]<br>
<br>
#fetch data for 2016 year and return them into acs object<br>
<br>
###### ADD &quot;span = 5&quot; for acs.fetch()<br>
<br>
ACSData2016 &lt;- acs.fetch(2016, span = 5, geography = Madison,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;variable = TransitVars,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;col.names = c(&quot;Total&quot;, &quot;Motor Vehicle&quot;, &quot;Public<br>
transit&quot;, &quot;Bicycle&quot;, &quot;Walked&quot;))<br>
##########<br>
<br>
Best,<br>
Ezra<br>
<br>
On Sun, 15 Apr 2018 15:19:18 -0400, Harald Kliems wrote:<br>
&gt; <br>
&gt; For our bike advocacy organization, I have been looking into commuting<br>
&gt; data from the ACS. Until recently, I used the FactFinder to download<br>
&gt; tables and then manipulate and analyze the data in LibreOffice Calc.<br>
&gt; I've now tried using the very useful ACS.r package to improve my work<br>
&gt; flow, but looking at the retrieved data, there seem to be differences<br>
&gt; between what I get through the ACS.r/API and what I download through<br>
&gt; the web interface from FactFinder.<br>
&gt; <br>
&gt; For example, for 2016 ACS 1-year data from table B08006 for Madison (WI):<br>
&gt; <br>
&gt; ###########<br>
&gt; ## set geography to city of Madison, Wisconsin<br>
&gt; Madison &lt;- geo.make(state=&quot;WI&quot;, place = 48000)<br>
&gt; <br>
&gt; ## select only the total, car/truck/van, public transport, bicycle,<br>
&gt; walk variables from table B08006<br>
&gt; TransitVars &lt;- acs.lookup(2016, span = 1, table.number = &quot;B08006&quot;,<br>
&gt; dataset = &quot;acs&quot;)[c(1,2,8,14,15)]<br>
&gt; <br>
&gt; #fetch data for 2016 year and return them into acs object<br>
&gt; <br>
&gt; ACSData2016 &lt;- acs.fetch(2016, geography = Madison,<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; variable = TransitVars,<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; col.names = c(&quot;Total&quot;, &quot;Motor Vehicle&quot;, &quot;Public<br>
&gt; transit&quot;, &quot;Bicycle&quot;, &quot;Walked&quot;))<br>
&gt; ##########<br>
&gt; <br>
&gt; Just looking at the &quot;total&quot; column, I get 140,435 through ACS.r but<br>
&gt; 146715 when looking up the same table and geography through<br>
&gt; FactFinder. Similar differences exist for other years and the other<br>
&gt; variables.<br>
&gt; <br>
&gt; I'm pretty new to R, and so it's entirely possible that I'm doing<br>
&gt; something wrong, but I don't see an obvious explanation for the<br>
&gt; discrepancy.<br>
&gt; <br>
&gt; Any hints would be appreciated.<br>
&gt; <br>
&gt; Thanks,<br>
&gt;&nbsp; Harald.<br>
&gt; _______________________________________________<br>
&gt; acs-r mailing list<br>
&gt; <a href="mailto:acs-r@mit.edu" target="_blank">acs-r@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/acs-r" rel="noreferrer" target="_blank">
http://mailman.mit.edu/mailman/listinfo/acs-r</a><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>
<a href="mailto:eglenn@mit.edu" target="_blank">eglenn@mit.edu</a> <br>
<a href="http://dusp.mit.edu/faculty/ezra-glenn" rel="noreferrer" target="_blank">http://dusp.mit.edu/faculty/ezra-glenn</a><br>
<a href="tel:(617)%20253-2024" value="&#43;16172532024" target="_blank">617.253.2024</a> (w)<br>
<a href="tel:(617)%20721-7131" value="&#43;16177217131" target="_blank">617.721.7131</a> (c)<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>