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
Thanks @jangorecki . I really don't know if it's a valid expectation for a data.table to work with nested data frames. When I try to view the data.table, it gives a gentle error:
> master
Error in FUN(X[[i]], ...) :
Invalid column: it has dimensions. Can't format it. If it's the result of data.table(table()), use as.data.table(table()) instead.
perhaps it'd be better if it complained at the time of setting it to a DT? setDT()?
I've been thinking we should fix that "Invalid column: it has dimensions" error...
it's not very helpful (doesn't name which column, and never have I encountered it as a "result of data.table(table())" -- usually it's because a data.frame had a data.frame as a column. we could offer better alternatives for the most common cases...
Activity
jangorecki commentedon Jun 16, 2018
thanks for report, reproduced on 1.11.5
PavoDive commentedon Jun 16, 2018
Thanks @jangorecki . I really don't know if it's a valid expectation for a
data.tableto work with nested data frames. When I try to view thedata.table, it gives a gentle error:perhaps it'd be better if it complained at the time of setting it to a DT?
setDT()?MichaelChirico commentedon Jun 18, 2018
I've been thinking we should fix that "Invalid column: it has dimensions" error...
it's not very helpful (doesn't name which column, and never have I encountered it as a "result of
data.table(table())" -- usually it's because adata.framehad adata.frameas a column. we could offer better alternatives for the most common cases...MichaelChirico commentedon Aug 24, 2019
Not a segfault anymore... #3770 would have given the error at
setDT. Will tag this to close with that PR