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
But I've found in more general scenarios (for example, subsetting on the top five of C then performing some operations on other columns) the following approach to be useful :
DT[order(C)[1:5], B]
However, this approach kills forder detection:
DT[order(C)[1:5], B, verbose = TRUE]
I guess it's easy to detect this and do forder and then subset.
The text was updated successfully, but these errors were encountered:
If we want to get the top five entries of a column, I guess the canonical approach is:
But I've found in more general scenarios (for example, subsetting on the top five of
C
then performing some operations on other columns) the following approach to be useful :However, this approach kills
forder
detection:I guess it's easy to detect this and do
forder
and then subset.The text was updated successfully, but these errors were encountered: