<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;">Once agan, thanks for the example. That wasn't a bug. It's how it was intended to work with prior versions of data.table. But to make things much more consistent (as per user requests and FRs filed), this change is now being implemented. </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;">Your point that there should be ways to make sure existing code doesn't break down is totally valid and we'll do whatever we can to get there. You've to realise this is a development version - we're working on it. And these things will get fixed only in due time. Until then, there's no other way but to get around these issues until we fix it, unfortunately - unless you or someone else would like to help us.</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_sign_1399465337316072960" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Arun</div></div> <div style="color:black"><br>From: <span style="color:black">nachti</span> <a href="mailto:kpm.nachtmann@gmail.com">kpm.nachtmann@gmail.com</a><br>Reply: <span style="color:black">nachti</span> <a href="mailto:kpm.nachtmann@gmail.com">kpm.nachtmann@gmail.com</a><br>Date: <span style="color:black">May 7, 2014 at 1:30:16 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"> Re: [datatable-help] changing data.table by-without-by syntax to require a "by" <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Arunkumar Srinivasan wrote<br>> The change of the defaults in 1.9.3 breaks existing code, which shoud not<br>> be <br>> (see. DT FAQ 1.8).<br>> Thanks. Yes, that's what will be the case when it hits CRAN. There will be<br>> an option to use the older feature, IIUC. Matt can clarify this point<br>> further.<br>> <br>> I know that 1.9.3 is a development version, but I can't use 1.9.2 due to <br>> http://r.789695.n4.nabble.com/Change-in-list-behavior-inside-join-td4687469.html <br>> Can you show us an example that 1.9.2 doesn't but 1.9.3 does?<br><br>Copied from<br>http://r.789695.n4.nabble.com/Change-in-list-behavior-inside-join-td4687469.html <br><br>#####<br>Just another example (maybe to be included to test.data.table), which does<br>not do, what I expected (v. 1.9.2 - it's also fixed in 1.9.3)<br><br>> require(data.table)<br><br>> sessionInfo()<br>R version 3.1.0 (2014-04-10)<br>Platform: powerpc64-unknown-linux-gnu (64-bit)<br>...<br>other attached packages:<br>[1] data.table_1.9.2<br><br>> example(data.table)<br>> DT<br> x y v v2 m<br>1: a 1 42 NA 42<br>2: a 3 42 NA 42<br>3: a 6 42 NA 42<br>4: b 1 4 84 5<br>5: b 3 5 84 5<br>6: b 6 6 84 5<br>7: c 1 7 NA 8<br>8: c 3 8 NA 8<br>9: c 6 9 NA 8<br><br>> setkey(DT)<br>> DT[J("a"), list(v, y)]<br> x v y<br>1: a 42 1<br>> DT[J("a"), list(v, y, i = "text")]<br> x v y i<br>1: a 42 1 text<br><br>##### With data.table 1.9.3 it's working fine:<br>> require(data.table)<br><br>> sessionInfo()<br>R version 3.1.0 (2014-04-10)<br>Platform: powerpc64-unknown-linux-gnu (64-bit)<br>...<br>other attached packages:<br>[1] data.table_1.9.3<br><br>> example(data.table)<br><br>> setkey(DT)<br>> DT[J("a"), list(v, y)]<br> v y<br>1: 42 1<br>2: 42 3<br>3: 42 6<br>> DT[J("a"), list(v, y, i = "text")]<br> v y i<br>1: 42 1 text<br>2: 42 3 text<br>3: 42 6 text<br><br>nachti <br>#####<br><br><br>Arunkumar Srinivasan wrote<br>> In your case, you should be using stable 1.9.2 version (at least until<br>> counter measures are in place for by=.EACHI). And you should ask your<br>> administrators to downgrade R, if you don't want that bug to bite you,<br>> until this is fixed. But I'm repeating myself.<br>> <br>> Arun<br><br><br><br><br><br>--<br>View this message in context: http://r.789695.n4.nabble.com/changing-data-table-by-without-by-syntax-to-require-a-by-tp4664770p4690105.html<br>Sent from the datatable-help mailing list archive at Nabble.com.<br>_______________________________________________<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>