You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[R-Forge #2422] Handle columns with complex numbers #602
I suppose this issue is open because complex columns are not feature-complete?
E.g,
set.seed(102439)
DT <- data.table(C = c(1+2i, 1+2i, 1-2i, 1-2i),
N = runif(4), I = c(1L, 1L, 2L, 2L))
DT[ , .N, by = C]
Error in``[.data.table(DT, , .N, by = C):
column or expression 1 of `by` or `keyby` is type `complex`. Do not quote column names. Usage: `DT[,sum(colC),by=list(colA,month(colB))]`
Error in gsum(C) :
Type complex not supported by GForce sum (gsum). Either add the prefix base::sum(.) or turn off GForce optimization using options(datatable.optimize=1)
But
DT[ , base::sum(C), by = I]
Error in``[.data.table(DT, , base::sum(C), by = I) :
Type 15 in `.SD` column 0
Activity
MichaelChirico commentedon Mar 18, 2016
I suppose this issue is open because
complexcolumns are not feature-complete?E.g,
Other standard operations seem to work:
Though not always...
But
jangorecki commentedon Mar 18, 2016
The last one
DT[ , base::sum(C), by = I]looks like a bug. Thissapply(split(DT$C, DT$I), sum)works.arunsrinivasan commentedon Aug 3, 2016
dup of #1444.