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
Reproducing for me on latest dev. I guess diff(factor) is not meaningful and should be an error, but it's going through and causing an error later down the line.
set.seed(32940)
NN = 7e5
KK = 4e4
TT = 25
DT = data.table(
id = sample(KK, NN, TRUE),
tt = sample(TT, NN, TRUE),
ff = factor(sample(3, NN, TRUE))
)
DT[ , diff(ff), by = id]
Error in rbindlist(l, use.names, fill, idcol) :
STRING_ELT() can only be applied to a 'character vector', not a 'NULL'
traceback() shows it's coming from print:
6: rbindlist(l, use.names, fill, idcol) at data.table.R#2673
5: data.table::.rbind.data.table(...)
4: rbind(deparse.level, ...)
3: rbind(head(x, topn), tail(x, topn)) at print.data.table.R#53
2: print.data.table(x)
1: function (x, ...)
UseMethod("print")(x)
The text was updated successfully, but these errors were encountered:
Reproducing for me on latest dev. I guess
diff(factor)
is not meaningful and should be an error, but it's going through and causing an error later down the line.traceback()
shows it's coming fromprint
:The text was updated successfully, but these errors were encountered: