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
Output of many function in dplyr pkg is a tbl_df class objects. It is not handled correctly by setDT which works on regular df and lists very well. See below:
Would be great to have setDT works on tbl_df and possibly also tbl classes.
Currently such object is not usable without using first setDT(as.data.frame(df2))[].
Edit
Or easier/faster operating directly on class attribute: setattr(df,"class",c("data.table","data.frame"))
The text was updated successfully, but these errors were encountered:
#1128 also seems related. Possible fix is as follows:
If an object is already a data.table with additional classes, we retain in any and all operations possible (current behaviour as such need not be modified).
If an object is converted from another object to data.table, then we simply do not retain classes.
Output of many function in dplyr pkg is a
tbl_df
class objects. It is not handled correctly bysetDT
which works on regular df and lists very well. See below:Would be great to have
setDT
works ontbl_df
and possibly alsotbl
classes.Currently such object is not usable without using first
setDT(as.data.frame(df2))[]
.Edit
Or easier/faster operating directly on class attribute:
setattr(df,"class",c("data.table","data.frame"))
The text was updated successfully, but these errors were encountered: