3 ms·
j is always for columns. So for your first example it grabs the third column. The calculation you’re performing is a column selection. For your second example
by nojito 7y ago
j is always for columns.
So for your first example it grabs the third column. The calculation you’re performing is a column selection.
For your second example, you’re returning all the rows, selecting column V1, and summing it.
I really prefer to name the operations
dt[rows, columns, groups]