split
for a data.table that keeps integrity of a column of lists of data.table objects
Source: R/pkgDep3.R
splitKeepOrderAndDTIntegrity.Rd
data.table::split
does 2 bad things:
reorders if using
f
destroys the integrity of a column that is a list of data.tables, when using
by
So, to keep order, needby
, but to keep integrity, needf
. This function