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
a.matrix<-matrix(seq_len(25),ncol=5, nrow=5)
a.list<-list(seq_len(5),a.matrix)
a.dt<- as.data.table(a.list)
a.df<- as.data.frame(a.list)
a.dt.df<- as.data.table(a.df)
str(a.dt)
str(a.df) # different from a.dt
str(a.dt.df) # same as a.df
The text was updated successfully, but these errors were encountered:
See http://stackoverflow.com/questions/26070187/why-does-data-table-recycle-matrices-into-a-single-vector-when-data-frame-does-n for background.
Reproduce:
The text was updated successfully, but these errors were encountered: