[datatable-help] Unexpectedly getting "Didn't allocate enough rows..."
Harish
harishv_99 at yahoo.com
Sun Jul 11 11:09:06 CEST 2010
I am unexpectedly getting an error -- Didn't allocate enough rows. Must grow ans (to implement as we don't want default slow grow)
DT <- data.table(
A=c("a","a","b","b","d","c","a","d"),
B=c("x1","x2","x2","x1","x2","x1","x1","x2"),
C=c(5,2,3,4,9,5,1,9)
)
DT[ , list(C[ C-min(C) < 3 ]), by=list(A,B) ] # Get error
DT[ , list(C[ C-min(C) < 5 ]), by=list(A,B) ] # No error (as expected)
Am I doing something that I shouldn't be?
Harish
More information about the datatable-help
mailing list