[datatable-help] updating subsets

Sebastian Fischmeister sfischme at uwaterloo.ca
Mon Jul 20 17:55:59 CEST 2015



> I think you should use a single data.table; it's much more straightforward
> in that case:
>
> qq <- data.table(runif(18),id=rep(1:2,each=9))
> qq[,freq:=.N,by=.(id,seq(nrow(qq))%/%5)]

Thanks for the idea, unfortunately I need lists. The example is just a
minimal example to show the problem. The actual code will use large
data.tables in lists and I want to eventually use mclapply to
parallelize the computation.

  Sebastian


More information about the datatable-help mailing list