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
require(data.table)
set.seed(123)
dt<- data.table(a=c("abc", "def", "ghi"), b=runif(3))
dt[, c:=list(list(data.table(d=runif(1), e=runif(1))))]
dt# a b c#1: abc 0.2875775 <data.table>#2: def 0.7883051 <data.table>#3: ghi 0.4089769 <data.table>dt[, get("c")] ## <<-- not sure if print bug# Error in FUN(X[[1L]], ...) : # Invalid column: it has dimensions. Can't format it. If it's the result of data.table(table()), use as.data.table(table()) instead.dt## <<- why isn't this being printed?# Error in FUN(X[[1L]], ...) : # Invalid column: it has dimensions. Can't format it. If it's the result of data.table(table()), use as.data.table(table()) instead.
Regarding this post, consider
Interestingly, this still works:
Another scenario
Seems like column names were lost
The text was updated successfully, but these errors were encountered: