<div dir="ltr">1.9.5 is the current devel version. Bugs from 1.9.4 are likely to be fixed there.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 9:30 PM, Bacou, Melanie <span dir="ltr"><<a href="mailto:mel@mbacou.com" target="_blank">mel@mbacou.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I can reproduce in 1.9.4:<br>
<br>
> library(data.table)<br>
data.table 1.9.4 For help type: ?data.table<br>
*** NB: by=.EACHI is now explicit. See README to restore previous
behaviour.<br>
Warning message:<br>
package 'data.table' was built under R version 3.1.1 <br><span class="">
> d <- data.table(a=1:2, b=1:2)<br>
> d[round(a) == a]<br>
a b<br>
1: 1 1<br>
2: 2 2<br>
> d[a == round(a)]<br>
Error in eval(expr, envir, enclos) : object 'a' not found<br>
<br></span>
> versionInfo()<br>
Error: could not find function "versionInfo"<br>
> sessionInfo()<br>
R version 3.1.0 (2014-04-10)<br>
Platform: x86_64-w64-mingw32/x64 (64-bit)<br>
<br>
locale:<br>
[1] LC_COLLATE=English_United States.1252 <br>
[2] LC_CTYPE=English_United States.1252 <br>
[3] LC_MONETARY=English_United States.1252<br>
[4] LC_NUMERIC=C <br>
[5] LC_TIME=English_United States.1252 <br>
<br>
attached base packages:<br>
[1] stats graphics utils datasets grDevices methods
base <br>
<br>
other attached packages:<br>
[1] data.table_1.9.4 rj_1.1.3-1 <br>
<br>
loaded via a namespace (and not attached):<br>
[1] chron_2.3-45 plyr_1.8.1 Rcpp_0.11.3 reshape2_1.4
rj.gd_1.1.3-1<br>
[6] stringr_0.6.2 tools_3.1.0<div><div class="h5"><br>
<br>
<br>
<div>On 12/15/2014 9:53 AM, Arunkumar
Srinivasan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I can't reproduce this in 1.9.5 (current devel): <a href="http://github.com/Rdatatable/data.table" target="_blank">http://github.com/Rdatatable/data.table</a></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Dec 15, 2014 at 3:26 PM, Johann
Hibschman <span dir="ltr"><<a href="mailto:jhibschman@gmail.com" target="_blank">jhibschman@gmail.com</a>></span>
wrote:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I finally
had time to put together a minimal example:<br>
<br>
> d <- data.table(a=1:2, b=1:2)<br>
> d[round(a) == a]<br>
a b<br>
1: 1 1<br>
2: 2 2<br>
> d[a == round(a)]<br>
Error in eval(expr, envir, enclos) : object 'a' not
found<br>
<br>
Is this a bug, or am I missing something about the scoping
rules?<br>
<br>
R 3.1.2, data.table 1.9.4, on Windows 7.<br>
<br>
Thanks,<br>
Johann<br>
<span><br>
On Fri, Dec 12, 2014 at 10:18 AM, Johann Hibschman <<a href="mailto:jhibschman@gmail.com" target="_blank">jhibschman@gmail.com</a>>
wrote:<br>
> I just ran into an issue where d[X==round(X)] gives
different results<br>
> from d[round(X) == X]. Why would that happen?<br>
><br>
> Here's the exact example:<br>
><br>
>> z.dev[YIELD == round(YIELD),]<br>
> Error in eval(expr, envir, enclos) : object 'YIELD'
not found<br>
>> z.dev[round(YIELD) == YIELD,]<br>
> runId dealName cusip scenarioId shockId
pathOrder PRICE100<br>
> YIELD MOD_DURN MOD_CONVEXITY DISC_MARGIN SPREAD_BP<br>
> 1: 10556 HVML0501 41161PLE1 772 0
3 54.5094<br>
> 6 4.739 0.431 400 418<br>
> 2: 10556 HVML0501 41161PLE1 773 0
3 52.9452<br>
> 6 4.706 0.427 400 424<br>
><br>
> Thanks,<br>
> Johann<br>
</span>
<div>
<div>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
datatable-help mailing list
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a></pre>
</blockquote>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Melanie BACOU
International Food Policy Research Institute
Snr. Program Manager, HarvestChoice
Work <a href="tel:%2B1%28202%29862-5699" value="+12028625699" target="_blank">+1(202)862-5699</a>
E-mail <a href="mailto:m.bacou@cgiar.org" target="_blank">m.bacou@cgiar.org</a>
Visit <a href="http://www.harvestchoice.org" target="_blank">www.harvestchoice.org</a> </pre>
</font></span></div>
</blockquote></div></div>