[datatable-help] data.table: partition like aggregate (FUN = list)

Dan Muresan danmbox at gmail.com
Mon Apr 28 05:56:52 CEST 2014


Hi,

> dt[, list(x=list(I(x)), y=list(I(y))), by=list(grp = x %% 3)]

this seems to work and is pretty natural. I guess the idea was to wrap
the result twice in list(). Thanks.


More information about the datatable-help mailing list