[datatable-help] Infinite numeric key doesn't collapse

caneff at gmail.com caneff at gmail.com
Wed Feb 12 17:07:04 CET 2014


Whoops! Sorry I try to keep synced to the latest devel version, but
sometimes because of work related updates packages get overwritten back to
the latest public version.  Sorry about that.

I also found an easy workaround since the number of unique values is low, I
can make it an ordered factor.

On Wed Feb 12 2014 at 11:04:10 AM, Arunkumar Srinivasan <
aragorn168b at gmail.com> wrote:

> Caneff,
>
> 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).
> Arun
> ------------------------------
> From: caneff at gmail.com caneff at gmail.com
> Reply: caneff at gmail.com caneff at gmail.com
> Date: February 12, 2014 at 5:02:14 PM
> To: datatable-help at lists.r-forge.r-project.org
> datatable-help at lists.r-forge.r-project.org
> Subject:  [datatable-help] Infinite numeric key doesn't collapse
>
> 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:
>
> DT <- data.table(x=rep(c(1,Inf), each=10), y=1:20)
>
> DT[, sum(y), by=x] # The x==1 cases collapse, but the Inf cases don't
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20140212/c4e13df3/attachment.html>


More information about the datatable-help mailing list