[datatable-help] Fixed 'grp.1' annoyance when j returns a subset of .SD
Matthew Dowle
mdowle at mdowle.plus.com
Sat Jan 22 17:56:23 CET 2011
All,
Now that 1.5.2 is on CRAN I've made this change which may introduce
incompatibilities for existing code.
This is in 1.5.3 on R-Forge to be tried out for a while, discussed, and
rolled back or done differently if need be. Please let us know if this
causes any difficulties.
Tests 104, 144 and 229 have been changed accordingly.
A side effect of this change is that it should be faster for two
reasons: i) the grp columns were redundant in .SD (repeated values) so
taking them out leaves less for dogroups to do and ii) less need to take
a subset of columns of .SD merely to remove the grp columns to do
something on the others (code that does that may be up to twice as fast
when the subset of .SD is removed).
More information about the datatable-help
mailing list