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
# TODO add: if (max(len__)==nrow) stopf("There is no need to deep copy x in this case")
1613
1613
# TODO move down to dogroup.c, too.
1614
-
SDenv$.SDall= .Call(CcopyAsGrowable, .Call(CsubsetDT, x, if (length(len__)) seq_len(max(len__)) else0L, xcols), FALSE) # must be deep copy when largest group is a subset
1614
+
SDenv$.SDall= .Call(CcopyAsGrowable, .Call(CsubsetDT, x, if (length(len__)) seq_len(max(len__)) else0L, xcols)) # must be deep copy when largest group is a subset
1615
1615
if (!is.data.table(SDenv$.SDall)) setattr(SDenv$.SDall, "class", c("data.table","data.frame")) # DF |> DT(,.SD[...],by=grp) needs .SD to be data.table, test 2022.012
1616
1616
if (xdotcols) setattr(SDenv$.SDall, 'names', ansvars[xcolsAns]) # now that we allow 'x.' prefix in 'j', #2313 bug fix - [xcolsAns]
0 commit comments