Description Usage Arguments Details Examples
For each data.table
subset (as subset by the by
argument),
return the rows at indices i
.
1 |
DT |
A |
i |
Indices at which to subset each sub- |
by |
Variable(s) to subset over, as a |
The code wraps to the impossible to remember but incredibly powerful and
fast DT[ DT[, .I[i], by=by]$V1 ]
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.