<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Caneff,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I'm guessing you're using 1.8.10. This has been fixed a while ago in the current devel version 1.8.11. Or you can wait until the next release (which should be very soon now).</div> <div id="bloop_sign_1392220982199810048" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Arun</div></div> <div style="color:gray"><hr style="style:linear">From: <span style="color:black">caneff@gmail.com</span> <a href="mailto:caneff@gmail.com">caneff@gmail.com</a><br>Reply: <span style="color:black">caneff@gmail.com</span> <a href="mailto:caneff@gmail.com">caneff@gmail.com</a><br>Date: <span style="color:black">February 12, 2014 at 5:02:14 PM</span><br>To: <span style="color:black">datatable-help@lists.r-forge.r-project.org</span> <a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>Subject: <span style="color:black"> [datatable-help] Infinite numeric key doesn't collapse <br></span></div> <blockquote type="cite" class="clean_bq"><span><div><div>
<title></title>
I have a numeric key in a data.table that sometimes has infinite
values. I discovered today that Inf does not collapse when used in
a by. Is this expected? It surprised me:
<div><br></div>
<div>DT <- data.table(x=rep(c(1,Inf), each=10), y=1:20)</div>
<div><br></div>
<div>DT[, sum(y), by=x] # The x==1 cases collapse, but the Inf
cases don't</div>
_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</div></div></span></blockquote></body></html>